Input Module Input Device. More...
#include <deBaseInputDevice.h>
Public Member Functions | |
Constructors and Destructors | |
| deBaseInputDevice () | |
| Creates a new input device object. | |
| virtual | ~deBaseInputDevice () |
| Cleans up the input device object. | |
Accessors | |
| virtual const char * | GetName ()=0 |
| Returns a descriptive name for the device suitable for a player to identify and select the correct device later in the game like 'USB Gamepad #1'. | |
| virtual const char * | GetPrefix ()=0 |
| Returns the device prefix string to combine with a button or axis prefix string like 'USBGamePad1'. | |
| virtual int | GetAxisCount ()=0 |
| Returns the number of axes this input device supports. | |
| virtual int | GetButtonCount ()=0 |
| Returns the number of buttons this input device supports. | |
Input Module Input Device.
An input device describes one device on the host computer which can be used to provide digital or analog input to the game engine.
| deBaseInputDevice::deBaseInputDevice | ( | ) |
Creates a new input device object.
| virtual deBaseInputDevice::~deBaseInputDevice | ( | ) | [virtual] |
Cleans up the input device object.
| virtual int deBaseInputDevice::GetAxisCount | ( | ) | [pure virtual] |
Returns the number of axes this input device supports.
| virtual int deBaseInputDevice::GetButtonCount | ( | ) | [pure virtual] |
Returns the number of buttons this input device supports.
| virtual const char* deBaseInputDevice::GetName | ( | ) | [pure virtual] |
Returns a descriptive name for the device suitable for a player to identify and select the correct device later in the game like 'USB Gamepad #1'.
This name has to be uniqe amongst all input devices this input module provides.
| virtual const char* deBaseInputDevice::GetPrefix | ( | ) | [pure virtual] |
Returns the device prefix string to combine with a button or axis prefix string like 'USBGamePad1'.
The prefix has to be unique among all the devices this input modules issues if possible to allow beeing stored in a config file. The prefix is an normalized string that only is allowed to have only letters, numbers and underscores.
1.7.2