MPMA Framework 0.4
Classes | Namespaces | Enumerations | Functions
Unified.h File Reference

Unified input for keyboard+mouse+gamepad. Note that all input relies on the window being set up first. More...

Go to the source code of this file.

Classes

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

Namespaces

namespace  INPUT
 

Input.


namespace  INPUT::MOUSE
 

Mouse-specific input.


namespace  INPUT::KEYBOARD
 

Keyboard-specific input.


namespace  INPUT::GAME
 

Game devices.


Enumerations

enum  INPUT::DeviceType
 The device that a button represents.

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.
UnifiedButton * INPUT::MOUSE::GetUnifiedButton (uint8 button)
 Returns a unified button that represents a specific mouse button.
UnifiedButton * INPUT::KEYBOARD::GetUnifiedButton (uint8 key)
 Returns a unified button that represents a specific key.
UnifiedButton * INPUT::GAME::GetUnifiedButton (Button *button)
 Returns a unified button that represents a specific game device button.
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.
UnifiedAxisSet * INPUT::GAME::GetUnifiedAxisSet (AxisSet *axes)
 Returns a unified axis set that represents a specific game device axis set.
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.

Detailed Description

Unified input for keyboard+mouse+gamepad. Note that all input relies on the window being set up first.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends