MPMA Framework 0.4
Classes | Functions
INPUT::GAME Namespace Reference

Game devices. More...

Classes

class  AxisSet
 Represents a set of related axes on a device. More...
class  Button
 Represents a button on a device. More...
class  Device
 Represents a game device, such as a joystick or gamepad. More...

Functions

void EnableAutoPoll (bool enable)
 Enables or disables auto-polling of all devices each frame. The default is to auto-poll, in which case it is never neccesary to manually call PollAllDevices.
void PollAllDevices ()
 Updates the data for all axes in buttons in all Devices. This also updates the list of currently and newly pressed buttons and axes.
const std::vector< const
Button * > & 
GetCurrentlyPressedButtons ()
 Returns a list of buttons that are currently pressed.
const std::vector< const
Button * > & 
GetNewlyPressedButtons ()
 Returns a list of buttons that were newly pressed since the last call to PollAllDevices.
const std::vector< const
AxisSet * > & 
GetCurrentlyPressedAxes ()
 Returns a list of axis sets that are currently pressed.
const std::vector< const
AxisSet * > & 
GetNewlyPressedAxes ()
 Returns a list of axis sets that were newly pressed since the last call to PollAllDevices.
DeviceFindDevice (const std::string &identifierToFind)
 Finds a device given its persistent identifier. Returns 0 if not found.
ButtonFindButton (const std::string &identifierToFind)
 Finds a button given its persistent identifier. Returns 0 if not found.
AxisSetFindAxisSet (const std::string &identifierToFind)
 Finds an axis set given its persistent identifier. Returns 0 if not found.
std::list< Device > & GetDevices ()
 Returns all devices. Note that the pointers to the axes/buttons of the devices are always valid and constant while MPMA is in an initialized state.
UnifiedButtonGetUnifiedButton (Button *button)
 Returns a unified button that represents a specific game device button.
UnifiedAxisSetGetUnifiedAxisSet (AxisSet *axes)
 Returns a unified axis set that represents a specific game device axis set.

Detailed Description

Game devices.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends