Rigs of Rods 2023.09
Soft-body Physics Simulation
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
InputEngineClass.h
Go to the documentation of this file.
1
2namespace Script2Game {
3
17{
18public:
19
22
27
29
32
37
42
44
47
52
57 bool getEventBoolValueBounce(inputEvents ev, float time=0.2);
58
63
67 bool isKeyDownValueBounce(keyCodes keycode, float time = 0.2f);
68
70
73
74 bool isKeyDown(keyCodes keycode);
75
77
78};
79
82
83} //namespace Script2Game
Binding of RoR::InputEngine; Manages input devices, their configuration (input.map ....
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;...
bool isKeyDown(keyCodes keycode)
string getEventCommandTrimmed(inputEvents ev)
bool getEventBoolValue(inputEvents ev)
bool isKeyDownValueBounce(keyCodes keycode, float time=0.2f)
Get the safe "was key pressed?" value, optionally specifying the repeat ('bounce') interval.
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).
string getEventCommand(inputEvents ev)
Pseudo-namespace; it doesn't exist in code or script runtime, only in this documentation.
inputEvents
Binding of RoR::inputEvents; Used with Script2Game::InputEngineClass.
Definition inputEvents.h:20
keyCodes
Binding of RoR::keyCodes - used with Script2Game::InputEngineClass.
Definition keyCodes.h:20