Meteor2D  dev internal
Meteor is a lightweight 2D game engine.
Loading...
Searching...
No Matches
meteor::MInputManager Class Reference

manages user input events. More...

#include <inputmanagement.h>

Inheritance diagram for meteor::MInputManager:

Static Public Member Functions

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.
 

Additional Inherited Members

- Public Member Functions inherited from meteor::MEntity
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.
 
- Protected Attributes inherited from meteor::MEntity
std::string name
 

Detailed Description

manages user input events.

Member Function Documentation

◆ getKey()

static bool meteor::MInputManager::getKey ( EKeyCode key)
static

Returns true if a key if held down, on release returns false.

Parameters
keyKeyCode 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
keyKeyCode 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
keyKeyCode to check press status.
Returns
true if a key was released.