manages user input events.
More...
#include <inputmanagement.h>
|
static void | initialise () |
| Initialise the input manager, IMP: DO NOT TOUCH or INVOKE.
|
|
static void | update () |
| request InputManager to refresh its input state.
|
|
static bool | getKey (EKeyCode key) |
| Returns true if a key if held down, on release returns false.
|
|
static bool | getKeyDown (EKeyCode key) |
| Returns true if a key was pressed and then released.
|
|
static bool | getKeyUp (EKeyCode key) |
| Returns true if a key was released.
|
|
|
virtual bool | equals (MEntity *other) |
| Checks equality between two entities.
|
|
std::string | getName () |
|
void | setName (std::string name) |
| Sets name of entity.
|
|
virtual std::string | toString () |
| Get this object as a string.
|
|
std::string | name |
|
manages user input events.
◆ getKey()
static bool meteor::MInputManager::getKey |
( |
EKeyCode | key | ) |
|
|
static |
Returns true if a key if held down, on release returns false.
- Parameters
-
key | KeyCode to check press status. |
- Returns
- true if key is pressed down
◆ getKeyDown()
static bool meteor::MInputManager::getKeyDown |
( |
EKeyCode | key | ) |
|
|
static |
Returns true if a key was pressed and then released.
- Parameters
-
key | KeyCode to check press status. |
- Returns
- true if key is pressed down and released
◆ getKeyUp()
static bool meteor::MInputManager::getKeyUp |
( |
EKeyCode | key | ) |
|
|
static |
Returns true if a key was released.
- Parameters
-
key | KeyCode to check press status. |
- Returns
- true if a key was released.