|
MochiEngine
|
#include <IKeyboardProvider.h>
Public Member Functions | |
| virtual const bool * | GetState () const =0 |
| Gets an array of boolean values defining if each keyboard key is being pressed this frame or not. Key mapping is responsability of each implementation, but currently should follow the SDL keycode definitions. | |
| virtual size_t | GetMaxKeys () const =0 |
| Gets the maximum amount of keys, which is the size of the GetState array of bools. | |
Interface used to get per-frame data of the connected keyboard.
|
pure virtual |
Gets the maximum amount of keys, which is the size of the GetState array of bools.
Implemented in Mochi::Input::DummyKeyboardProvider, and Mochi::Input::SDLKeyboardProvider.
|
pure virtual |
Gets an array of boolean values defining if each keyboard key is being pressed this frame or not. Key mapping is responsability of each implementation, but currently should follow the SDL keycode definitions.
Implemented in Mochi::Input::DummyKeyboardProvider, and Mochi::Input::SDLKeyboardProvider.