#include <logicalinputdevice.h>

Public Member Functions | |
| LogicalInputDevice (const std::string &name="LogicalInputDevice") | |
| Constructor. | |
| LogicalButton * | AddButton (const std::string &description, Button *sourceButton, int buttonSymbol) |
| Adds a new logical button to this device. | |
| void | RemoveButton (LogicalButton *button) |
| Removes a logical button from this device. | |
| LogicalAxis * | AddAxis (const std::string &description, AxisMapping *mapping=NULL) |
| Adds a new logical axis. | |
| LogicalAxis * | AddAxis (const std::string &description, Axis *sourceAxis) |
| Adds a new logical axis. | |
| void | RemoveAxis (LogicalAxis *axis) |
| Removes a logical axis from this device. | |
Protected Member Functions | |
| virtual | ~LogicalInputDevice () |
| Destructor. | |
| dtCore::LogicalInputDevice::LogicalInputDevice | ( | const std::string & | name = "LogicalInputDevice" |
) |
Constructor.
| name | the instance name |
| dtCore::LogicalInputDevice::~LogicalInputDevice | ( | ) | [protected, virtual] |
Destructor.
| LogicalButton * dtCore::LogicalInputDevice::AddButton | ( | const std::string & | description, | |
| Button * | sourceButton, | |||
| int | buttonSymbol | |||
| ) |
Adds a new logical button to this device.
Equivalent to AddButton(description, new ButtonToButton(sourceButton)).
| description | a description of the button | |
| sourceButton | the source button | |
| buttonSymbol | : a unique number representing the button to be added |
| description | a description of the button | |
| sourceButton | the source button |
| void dtCore::LogicalInputDevice::RemoveButton | ( | LogicalButton * | button | ) |
Removes a logical button from this device.
| button | the button to remove |
| LogicalAxis * dtCore::LogicalInputDevice::AddAxis | ( | const std::string & | description, | |
| AxisMapping * | mapping = NULL | |||
| ) |
Adds a new logical axis.
| description | a description of the axis | |
| mapping | the initial axis mapping, or NULL for none |
| LogicalAxis * dtCore::LogicalInputDevice::AddAxis | ( | const std::string & | description, | |
| Axis * | sourceAxis | |||
| ) |
Adds a new logical axis.
Equivalent to AddAxis(description, new AxisToAxis(sourceAxis)).
| description | a description of the axis | |
| sourceAxis | the source axis |
| void dtCore::LogicalInputDevice::RemoveAxis | ( | LogicalAxis * | axis | ) |
Removes a logical axis from this device.
| axis | the axis to remove |