MPMA Framework 0.4
|
Represents a set of related axes on a device. More...
#include <GameDevice.h>
Public Member Functions | |
const std::string | GetCombinedName () const |
Returns a string representing the friendly name of all of the axes in this set. | |
const std::string & | GetPersistentIdentifier () const |
Returns an string that can be used to uniquely identify the axis set again after the program has exited. | |
bool | IsXPresent () const |
Returns true if this axis set contains an x axis. | |
bool | IsYPresent () const |
Returns true if this axis set contains an y axis. | |
bool | IsZPresent () const |
Returns true if this axis set contains an z axis. | |
const std::string & | GetXName () const |
Returns the name of the x axis. | |
const std::string & | GetYName () const |
Returns the name of the y axis. | |
const std::string & | GetZName () const |
Returns the name of the z axis. | |
float | GetXValue () const |
Returns the current value of the x axis, from -1 to 1. | |
float | GetYValue () const |
Returns the current value of the y axis, from -1 to 1. | |
float | GetZValue () const |
Returns the current value of the z axis, from -1 to 1. | |
void | SetXDeadZone (float amount) |
Sets the amount of dead zone for the x axis, from 0 to 1. | |
void | SetYDeadZone (float amount) |
Sets the amount of dead zone for the y axis, from 0 to 1. | |
void | SetZDeadZone (float amount) |
Sets the amount of dead zone for the z axis, from 0 to 1. | |
float | GetXDeadZone () const |
Gets the current dead zone for the x axis, from 0 to 1. | |
float | GetYDeadZone () const |
Gets the current dead zone for the y axis, from 0 to 1. | |
float | GetZDeadZone () const |
Gets the current dead zone for the z axis, from 0 to 1. | |
const Device * | GetDevice () const |
Returns the device this button belongs to. |
Represents a set of related axes on a device.