Rigs of Rods
2023.09
Soft-body Physics Simulation
Main Page
Related Pages
Topics
Namespaces
Data Structures
Files
File List
Globals
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
doc
angelscript
Script2Game
InputEngineClass.h
Go to the documentation of this file.
1
2
namespace
Script2Game
{
3
16
class
InputEngineClass
17
{
18
public
:
19
22
26
void
setEventSimulatedValue
(
inputEvents
ev,
float
val);
27
29
32
36
string
getEventCommand
(
inputEvents
ev);
37
41
string
getEventCommandTrimmed
(
inputEvents
ev);
42
44
47
51
bool
getEventBoolValue
(
inputEvents
ev);
52
57
bool
getEventBoolValueBounce
(
inputEvents
ev,
float
time=0.2);
58
62
bool
isKeyDownEffective
(
keyCodes
keycode);
63
67
bool
isKeyDownValueBounce
(
keyCodes
keycode,
float
time = 0.2f);
68
70
73
74
bool
isKeyDown
(
keyCodes
keycode);
75
77
78
};
16
class
InputEngineClass
{
…
};
79
82
83
}
//namespace Script2Game
Script2Game::InputEngineClass
Binding of RoR::InputEngine; Manages input devices, their configuration (input.map ....
Definition
InputEngineClass.h:17
Script2Game::InputEngineClass::setEventSimulatedValue
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;...
Script2Game::InputEngineClass::isKeyDown
bool isKeyDown(keyCodes keycode)
Script2Game::InputEngineClass::getEventCommandTrimmed
string getEventCommandTrimmed(inputEvents ev)
Script2Game::InputEngineClass::getEventBoolValue
bool getEventBoolValue(inputEvents ev)
Script2Game::InputEngineClass::isKeyDownValueBounce
bool isKeyDownValueBounce(keyCodes keycode, float time=0.2f)
Get the safe "was key pressed?" value, optionally specifying the repeat ('bounce') interval.
Script2Game::InputEngineClass::getEventBoolValueBounce
bool getEventBoolValueBounce(inputEvents ev, float time=0.2)
Script2Game::InputEngineClass::isKeyDownEffective
bool isKeyDownEffective(keyCodes keycode)
Tells if the game recognizes the key as pressed (not blocked by game state or obscured by GUI).
Script2Game::InputEngineClass::getEventCommand
string getEventCommand(inputEvents ev)
Script2Game
Pseudo-namespace; it doesn't exist in code or script runtime, only in this documentation.
Definition
AircraftEngineClass.h:1
Script2Game::inputEvents
inputEvents
Binding of RoR::inputEvents; Used with Script2Game::InputEngineClass.
Definition
inputEvents.h:20
Script2Game::keyCodes
keyCodes
Binding of RoR::keyCodes - used with Script2Game::InputEngineClass.
Definition
keyCodes.h:20
Generated on Fri Jan 2 2026 09:37:01 for Rigs of Rods by
1.9.8