MusicAdam / TotemDefender

Simple physics based game.
0 stars 1 forks source link

Buttons need to override onKeyboardSelect() #49

Closed MusicAdam closed 9 years ago

MusicAdam commented 9 years ago

There are two separate functions for sending input events to components, onClick() is called when the mouse clicks a component, and onKeyboardSelect() is called when the player uses the keyboard to select a button.

Anytime you put a button in a NavigableContainer you need to override both to enable both functionalities.

MusicAdam commented 9 years ago

just kidding, onKeyboardSelect() calls onClick() by default unless overriden.