Defines the interface that a Keyboard implementation must implement. More...
#include <Input/Keyboard.h>
Inherited by SDLKeyboard.
Public Member Functions | |
virtual bool | KeyDown (Key k) const =0 |
Determines if the given Key is down. | |
virtual bool | KeyPressed (Key k) const =0 |
Determines if the given Key was just pressed. | |
virtual bool | KeyPressedRepeat (Key k) const =0 |
Determines if the given Key was just pressed or is being repeated. | |
virtual bool | KeyRepeat (Key k) const =0 |
Determines if the given Key is being repeated. | |
virtual uint | InputQueueSize () const =0 |
Returns the size of the input queue. | |
virtual const KeyData & | InputQueuePeek () const =0 |
Returns the key at the top of the input queue. | |
virtual const KeyData & | InputQueueGet (uint i) const =0 |
Returns the ith key in the input queue. |
Defines the interface that a Keyboard implementation must implement.
virtual bool IKeyboard::KeyDown | ( | Key | k | ) | const [pure virtual] |
Determines if the given Key is down.
[in] | k | the Key to check. |
Implemented in SDLKeyboard.
virtual bool IKeyboard::KeyPressed | ( | Key | k | ) | const [pure virtual] |
Determines if the given Key was just pressed.
[in] | k | the Key to check. |
Implemented in SDLKeyboard.
virtual bool IKeyboard::KeyPressedRepeat | ( | Key | k | ) | const [pure virtual] |
Determines if the given Key was just pressed or is being repeated.
[in] | k | the Key to check. |
Implemented in SDLKeyboard.
virtual bool IKeyboard::KeyRepeat | ( | Key | k | ) | const [pure virtual] |
Determines if the given Key is being repeated.
[in] | k | the Key to check. |
Implemented in SDLKeyboard.