![]() |
RigsofRods
2023.09
Soft-body Physics Simulation
|
Binding of RoR::InputEngine; Manages input devices, their configuration (input.map ...) and state. More...
#include <InputEngineClass.h>
Public Member Functions | |
Input processing | |
| void | 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! More... | |
Event info | |
| string | getEventCommand (inputEvents ev) |
| string | getEventCommandTrimmed (inputEvents ev) |
Event states | |
| |
| bool | getEventBoolValue (inputEvents ev) |
| bool | getEventBoolValueBounce (inputEvents ev, float time=0.2) |
| bool | isKeyDownEffective (keyCodes keycode) |
| Tells if the game recognizes the key as pressed (not blocked by game state or obscured by GUI). More... | |
| bool | isKeyDownValueBounce (keyCodes keycode, float time=0.2f) |
| Get the safe "was key pressed?" value, optionally specifying the repeat ('bounce') interval. More... | |
Direct input device states | |
| bool | isKeyDown (keyCodes keycode) |
Binding of RoR::InputEngine; Manages input devices, their configuration (input.map ...) and state.
inputs. Definition at line 16 of file InputEngineClass.h.
| 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 | ) |
| 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!
1.8.17