#include <userinput.h>
Public Member Functions | |
| void | processEvents () |
| Called from the main loop. | |
| void | addHandler (KeyboardHandler *h) |
| Add handler to the key event handler chain. | |
| UserInput () | |
Public Attributes | |
| int | key_left |
| int | key_right |
| int | key_forward |
| int | key_back |
| int | key_shoot |
| int | mouse_delta_x |
| int | mouse_delta_y |
| int | mouse_left |
| int | mouse_right |
|
|
|
|
|
Add handler to the key event handler chain. Event handlers at the back of the chain (added last) will only receive an event if all handlers before are unable to handle the event (KeyboardHandler::onKeyEvent() returns false) |
|
|
Called from the main loop.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.2