![]() |
Rigs of Rods 2026.01
Soft-body Physics Simulation
|
Binding of RoR::InputEngine; Manages input devices, their configuration (input.map ...) and state.
inputs. Definition at line 16 of file InputEngineClass.h.
Public Member Functions | |
Input processing | |
| void | setEventSimulatedValue (inputEvents ev, float val) |
Event info | |
| string | getEventCommand (inputEvents ev) |
| string | getEventCommandTrimmed (inputEvents ev) |
Event states | |
| |
| float | getEventValue (inputEvents eventID, bool pure=false, inputSourceType valueSource=inputSourceType::IST_ANY) |
| bool | getEventBoolValue (inputEvents ev) |
| bool | getEventBoolValueBounce (inputEvents ev, float time=0.2) |
| bool | isKeyDownEffective (keyCodes keycode) |
| bool | isKeyDownValueBounce (keyCodes keycode, float time=0.2f) |
Direct input device states | |
| bool | isKeyDown (keyCodes keycode) |
| bool Script2Game::InputEngineClass::getEventBoolValue | ( | inputEvents | ev | ) |
| bool Script2Game::InputEngineClass::getEventBoolValueBounce | ( | inputEvents | ev, |
| float | time = 0.2 |
||
| ) |
| string Script2Game::InputEngineClass::getEventCommand | ( | inputEvents | ev | ) |
| string Script2Game::InputEngineClass::getEventCommandTrimmed | ( | inputEvents | ev | ) |
| float Script2Game::InputEngineClass::getEventValue | ( | inputEvents | eventID, |
| bool | pure = false, |
||
| inputSourceType | valueSource = inputSourceType::IST_ANY |
||
| ) |
| pure | When true, the returned input value won't be adjusted for parameters such as deadzone or linearity on joysticks. |
| valueSource | Indicates the type of input device the event value should be retrieved from. |
| bool Script2Game::InputEngineClass::isKeyDown | ( | keyCodes | keycode | ) |
| bool Script2Game::InputEngineClass::isKeyDownEffective | ( | keyCodes | keycode | ) |
Tells if the game recognizes the key as pressed (not blocked by game state or obscured by GUI).
| bool Script2Game::InputEngineClass::isKeyDownValueBounce | ( | keyCodes | keycode, |
| float | time = 0.2f |
||
| ) |
Get the safe "was key pressed?" value, optionally specifying the repeat ('bounce') interval.
| void Script2Game::InputEngineClass::setEventSimulatedValue | ( | inputEvents | ev, |
| float | val | ||
| ) |
Set a permanent (you must also clear it!) override for an input event; Value can be between -1 and 1; Don't forget to reset back to 0!