MPMA Framework 0.4
|
Unified input platform-common code. More...
Namespaces | |
namespace | INPUT |
Input. | |
namespace | INPUT::KEYBOARD |
Keyboard-specific input. | |
namespace | INPUT::MOUSE |
Mouse-specific input. | |
namespace | INPUT::GAME |
Game devices. | |
Functions | |
const std::vector < UnifiedButton * > & | INPUT::GetCurrentlyPressedButtons () |
Returns a list of buttons that are currently pressed down. | |
const std::vector < UnifiedButton * > & | INPUT::GetNewlyPressedButtons () |
Returns a list of buttons that were pressed since the last frame. | |
UnifiedButton * | INPUT::FindUnifiedButton (const std::string &persistentIdendifier) |
Finds a unified button from a persistent identifier returned from UnifiedButton::GetPersistentIdentifier. Returns 0 if not found. | |
const std::vector < UnifiedAxisSet * > | INPUT::GetNewlyPressedAxes () |
Returns a list of all axis sets that were pressed since the last frame. | |
const std::vector < UnifiedAxisSet * > | INPUT::GetCurrentlyPressedAxes () |
Returns a list of all axis sets that are currently pressed. | |
UnifiedAxisSet * | INPUT::FindUnifiedAxisSet (const std::string &persistentIdendifier) |
Finds a unified button from a persistent identifier returned from UnifiedAxisSet::GetPersistentIdentifier. Returns 0 if not found. | |
UnifiedButton * | INPUT::KEYBOARD::GetUnifiedButton (uint8 key) |
Returns a unified button that represents a specific key. | |
UnifiedAxisSet * | INPUT::KEYBOARD::GetUnifiedAxisSetArrows () |
Returns a unified axis set for the keyboard directional arrows. | |
UnifiedAxisSet * | INPUT::KEYBOARD::GetUnifiedAxisSetLetters () |
Returns a unified axis set for the keyboard letters. | |
UnifiedAxisSet * | INPUT::KEYBOARD::GetUnifiedAxisSetNumpad () |
Returns a unified axis set for the keyboard numpad. | |
UnifiedButton * | INPUT::MOUSE::GetUnifiedButton (uint8 button) |
Returns a unified button that represents a specific mouse button. | |
UnifiedButton * | INPUT::GAME::GetUnifiedButton (Button *button) |
Returns a unified button that represents a specific game device button. | |
UnifiedAxisSet * | INPUT::GAME::GetUnifiedAxisSet (AxisSet *axes) |
Returns a unified axis set that represents a specific game device axis set. | |
Variables | |
bool | INPUT::KeyboardLettersActsAsAxis = false |
If set to true, letters on the keyboard commonly used for movement (asdfoe,) will be treated as another axis. The default is false. | |
bool | INPUT::KeyboardNumpadActsAsAxis = true |
If set to true, the numpad directions will be treated as another axis. The default is true. | |
bool | INPUT::KeyboardArrowsActsAsAxis = true |
If set to true, the arrow directions will be treated as another axis. The default is true. |
Unified input platform-common code.