MPMA Framework 0.4
Namespaces | Classes | Enumerations | Functions | Variables
INPUT Namespace Reference

Input. More...

Namespaces

namespace  GAME
 

Game devices.


namespace  KEYBOARD
 

Keyboard-specific input.


namespace  MOUSE
 

Mouse-specific input.


Classes

struct  UnifiedButton
 Represents an input button from an arbitrary device. More...
struct  UnifiedAxisSet
 Uniquely identifies an axis contraption. Any given device type may have more than one set of axes. More...

Enumerations

enum  DeviceType
 The device that a button represents.

Functions

const std::vector
< UnifiedButton * > & 
GetCurrentlyPressedButtons ()
 Returns a list of buttons that are currently pressed down.
const std::vector
< UnifiedButton * > & 
GetNewlyPressedButtons ()
 Returns a list of buttons that were pressed since the last frame.
UnifiedButtonFindUnifiedButton (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 * > 
GetNewlyPressedAxes ()
 Returns a list of all axis sets that were pressed since the last frame.
const std::vector
< UnifiedAxisSet * > 
GetCurrentlyPressedAxes ()
 Returns a list of all axis sets that are currently pressed.
UnifiedAxisSetFindUnifiedAxisSet (const std::string &persistentIdendifier)
 Finds a unified button from a persistent identifier returned from UnifiedAxisSet::GetPersistentIdentifier. Returns 0 if not found.

Variables

bool 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 KeyboardNumpadActsAsAxis = true
 If set to true, the numpad directions will be treated as another axis. The default is true.
bool KeyboardArrowsActsAsAxis = true
 If set to true, the arrow directions will be treated as another axis. The default is true.

Detailed Description

Input.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends