A Keyboard controller which reads state of the keyboard device. More...
#include <controller_keyboard.h>
Public Member Functions | |
| KeyboardController () | |
| Constructor. | |
| ~KeyboardController () | |
| Destructor. | |
| void | update () |
| Read current state of keyboard controller. | |
Public Member Functions inherited from Controller | |
| Controller () | |
| Constructor. | |
| virtual | ~Controller () |
| Desctructor. | |
| virtual void | setKeyMap (KeyMap map) |
| Accepts control keys map which will associates physical keys of control device and command code. More... | |
| void | resetControls () |
| Sends "unpressed" control key states map to every registered controllable object. | |
| void | sendControls () |
| Sends current control key states map to every registered controllable object. | |
| void | registerInControl (ControllableObject *obj) |
| Register controllable object to this controller. More... | |
| void | removeFromControl (ControllableObject *obj) |
| Remove controllable object from this controller. More... | |
Additional Inherited Members | |
Public Types inherited from Controller | |
| enum | commands { key_start =0, key_left, key_right, key_up, key_down, key_run, key_jump, key_altrun, key_altjump, key_drop } |
| Control key command codes. | |
Static Public Member Functions inherited from Controller | |
| static controller_keys | noKeys () |
| Initializes a control key states map with unpressed key states. More... | |
Public Attributes inherited from Controller | |
| controller_keys | keys |
| Current state of control keys. | |
Protected Attributes inherited from Controller | |
| KeyMap | kmap |
| Current control keys map. | |
A Keyboard controller which reads state of the keyboard device.
1.8.7