|
|
| GamepadConfig (const std::string &name, const int axis_count=0, const int button_ount=0) |
| |
|
core::stringw | toString () |
| | Converts the configuration to a string.
|
| |
| virtual void | save (std::ofstream &stream) OVERRIDE |
| | Saves the configuration to a file. More...
|
| |
|
void | setDefaultBinds () |
| |
|
virtual core::stringw | getBindingAsString (const PlayerAction action) const OVERRIDE |
| | Get a user-readable string describing the bound action.
|
| |
| virtual bool | load (const XMLNode *config) OVERRIDE |
| | Loads this configuration from the given XML node. More...
|
| |
|
virtual bool | isAnalog (Input::InputType type, int id) const OVERRIDE |
| | Returns if this device uses analog axes.
|
| |
|
virtual bool | desensitize () const OVERRIDE |
| | Returns true if this device should desensitize its input at values close to 0 (to avoid 'oversteering').
|
| |
|
virtual int | getNumberOfButtons () const OVERRIDE |
| | Returns the number of buttons in this configuration.
|
| |
|
void | setNumberOfButtons (int count) |
| | Sets the number of buttons this device has.
|
| |
|
virtual int | getNumberOfAxes () const OVERRIDE |
| | Returns the number of axis of this configufation.
|
| |
|
void | setNumberOfAxis (int count) |
| | Sets the number of axis this device has.
|
| |
|
int | getDeadzone () const |
| | Return deadzone of this configuration.
|
| |
|
virtual bool | isGamePad () const OVERRIDE |
| |
|
virtual bool | isKeyboard () const OVERRIDE |
| |
|
void | initSDLController (const std::string &mapping, int buttons, int axes, int hats) |
| |
|
void | initSDLMapping () |
| |
|
bool | useForceFeedback () const |
| |
|
void | setForceFeedback (bool val) |
| |
|
int | getAutoCenterStrength () const |
| |
|
void | setAutoCenter (bool val) |
| |
|
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. More...
|
| |
| bool | getMenuAction (Input::InputType type, const int id, int *value, PlayerAction *action) |
| | Searches for a game actions associated with the given input event. More...
|
| |
| irr::core::stringw | getMappingIdString (const PlayerAction action) const |
| | Get an internal unique string describing the bound action. More...
|
| |
|
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 gamepad type devices