|
virtual void | setDefaultBinds () |
|
virtual void | save (std::ofstream &stream) |
| Saves the configuration to a file.
|
|
virtual bool | isGamePad () const |
|
virtual bool | isKeyboard () const |
|
irr::core::stringw | toString () |
|
bool | hasBindingFor (const int buttonID) const |
|
bool | hasBindingFor (const int buttonID, PlayerAction from, PlayerAction to) const |
|
void | setBinding (const PlayerAction action, const Input::InputType type, const int id, Input::AxisDirection direction=Input::AD_NEUTRAL, Input::AxisRange range=Input::AR_HALF) |
| Sets the bindings for an action.
|
|
bool | getMenuAction (Input::InputType type, const int id, int *value, PlayerAction *action) |
| Searches for a game actions associated with the given input event.
|
|
irr::core::stringw | getMappingIdString (const PlayerAction action) const |
| Get an internal unique string describing the bound action.
|
|
virtual irr::core::stringw | getBindingAsString (const PlayerAction action) const |
| Get a user-readable string describing the bound action.
|
|
virtual bool | isGamePad () const =0 |
|
virtual bool | isKeyboard () const =0 |
|
virtual void | save (std::ofstream &stream) |
| Saves the configuration to a file.
|
|
virtual bool | load (const XMLNode *config) |
| Reads a device configuration from input.xml.
|
|
virtual bool | isAnalog (Input::InputType type, int id) const |
| Returns true if this device has analog axis, so that steering values will not be affected by time-full-steer delays.
|
|
virtual bool | desensitize () const |
| Returns true if this device should desensitize its input at values close to 0 (to avoid 'oversteering').
|
|
virtual int | getNumberOfButtons () const |
| Should only be called for gamepads, which has its own implementation.
|
|
virtual int | getNumberOfAxes () const |
| Should only be called for gamepads, which has its own implementation.
|
|
void | setName (const std::string &name) |
| Sets the internal name of this device.
|
|
const std::string & | getName () const |
| Returns the internal name for this device configuration.
|
|
void | setPlugged () |
| Increase ref counter.
|
|
bool | isPlugged () const |
| Returns if this config is sed by any devices.
|
|
void | unPlugged () |
| Decrease ref counter.
|
|
int | getNumberOfDevices () const |
| Returns the number of devices using this configuration.
|
|
const Binding & | getBinding (int i) const |
| Returns the binding of a given index.
|
|
bool | isEnabled () const |
| At this time only relevant for gamepads, keyboards are always enabled.
|
|
void | setEnabled (bool new_value) |
| Sets this config to be enabled or disabled.
|
|
irr::core::stringw | getConfigName () const |
| Sets the name of this device configuration.
|
|
void | setConfigName (irr::core::stringw config_name) |
| Returns the name of this device configuration.
|
|
specialisation of DeviceConfig for keyboard type devices