RigsofRods
Soft-body Physics Simulation
InputEngineAngelscript.cpp
Go to the documentation of this file.
1 /*
2  This source file is part of Rigs of Rods
3  Copyright 2005-2012 Pierre-Michel Ricordel
4  Copyright 2007-2012 Thomas Fischer
5  Copyright 2013-2022 Petr Ohlidal
6 
7  For more information, see http://www.rigsofrods.org/
8 
9  Rigs of Rods is free software: you can redistribute it and/or modify
10  it under the terms of the GNU General Public License version 3, as
11  published by the Free Software Foundation.
12 
13  Rigs of Rods is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with Rigs of Rods. If not, see <http://www.gnu.org/licenses/>.
20 */
21 
25 
26 #include "InputEngine.h"
27 #include "ScriptEngine.h"
28 
29 #include <OIS.h>
30 
31 using namespace AngelScript;
32 using namespace RoR;
33 using namespace OIS;
34 
35 void registerInputEngineObject(asIScriptEngine* engine)
36 {
37  // Please maintain the same order as in 'InputEngine.cpp' and 'docs/*/InputEngineClass.h'
38  // --------------------------------------------------------------------------------------
39 
40  using namespace RoR;
41  int result = 0;
42 
43  result = engine->RegisterObjectType("InputEngineClass", sizeof(InputEngine), asOBJ_REF | asOBJ_NOCOUNT); ROR_ASSERT(result>=0);
44 
45  // > Input processing
46  result = engine->RegisterObjectMethod("InputEngineClass", "void setEventSimulatedValue(inputEvents ev, float value)", asMETHOD(InputEngine,setEventSimulatedValue), asCALL_THISCALL); ROR_ASSERT(result>=0);
47  result = engine->RegisterObjectMethod("InputEngineClass", "void setEventStatusSupressed(inputEvents ev, bool supressed)", asMETHOD(InputEngine,setEventStatusSupressed), asCALL_THISCALL); ROR_ASSERT(result>=0);
48 
49  // > Event info
50  result = engine->RegisterObjectMethod("InputEngineClass", "string getEventCommand(inputEvents ev)", asMETHOD(InputEngine,getEventCommand), asCALL_THISCALL); ROR_ASSERT(result>=0);
51  result = engine->RegisterObjectMethod("InputEngineClass", "string getEventCommandTrimmed(inputEvents ev)", asMETHOD(InputEngine,getEventCommandTrimmed), asCALL_THISCALL); ROR_ASSERT(result>=0);
52 
53  // > Event states
54  result = engine->RegisterObjectMethod("InputEngineClass", "bool getEventBoolValue(inputEvents ev)", asMETHOD(InputEngine,getEventBoolValue), asCALL_THISCALL); ROR_ASSERT(result>=0);
55  result = engine->RegisterObjectMethod("InputEngineClass", "bool getEventBoolValueBounce(inputEvents ev, float time = 0.2f)", asMETHOD(InputEngine,getEventBoolValueBounce), asCALL_THISCALL); ROR_ASSERT(result>=0);
56  result = engine->RegisterObjectMethod("InputEngineClass", "bool isKeyDownEffective(keyCodes keycode)", asMETHOD(InputEngine,isKeyDownEffective), asCALL_THISCALL); ROR_ASSERT(result>=0);
57  result = engine->RegisterObjectMethod("InputEngineClass", "bool isKeyDownValueBounce(keyCodes keycode, float time = 0.2f)", asMETHOD(InputEngine,isKeyDownValueBounce), asCALL_THISCALL); ROR_ASSERT(result>=0);
58 
59  // Direct input device states
60  result = engine->RegisterObjectMethod("InputEngineClass", "bool isKeyDown(keyCodes keycode)", asMETHOD(InputEngine,isKeyDown), asCALL_THISCALL); ROR_ASSERT(result>=0);
61 }
62 
63 void registerEventTypeEnum(asIScriptEngine* engine)
64 {
65  using namespace RoR;
66  int result = 0;
67 
68  result = engine->RegisterEnum("inputEvents"); ROR_ASSERT(result >= 0);
69 
70  result = engine->RegisterEnumValue("inputEvents", "EV_AIRPLANE_AIRBRAKES_FULL", EV_AIRPLANE_AIRBRAKES_FULL ); ROR_ASSERT(result >= 0);
71  result = engine->RegisterEnumValue("inputEvents", "EV_AIRPLANE_AIRBRAKES_LESS", EV_AIRPLANE_AIRBRAKES_LESS ); ROR_ASSERT(result >= 0);
72  result = engine->RegisterEnumValue("inputEvents", "EV_AIRPLANE_AIRBRAKES_MORE", EV_AIRPLANE_AIRBRAKES_MORE ); ROR_ASSERT(result >= 0);
73  result = engine->RegisterEnumValue("inputEvents", "EV_AIRPLANE_AIRBRAKES_NONE", EV_AIRPLANE_AIRBRAKES_NONE ); ROR_ASSERT(result >= 0);
74  result = engine->RegisterEnumValue("inputEvents", "EV_AIRPLANE_BRAKE", EV_AIRPLANE_BRAKE ); ROR_ASSERT(result >= 0);
75  result = engine->RegisterEnumValue("inputEvents", "EV_AIRPLANE_ELEVATOR_DOWN", EV_AIRPLANE_ELEVATOR_DOWN ); ROR_ASSERT(result >= 0);
76  result = engine->RegisterEnumValue("inputEvents", "EV_AIRPLANE_ELEVATOR_UP", EV_AIRPLANE_ELEVATOR_UP ); ROR_ASSERT(result >= 0);
77  result = engine->RegisterEnumValue("inputEvents", "EV_AIRPLANE_FLAPS_FULL", EV_AIRPLANE_FLAPS_FULL ); ROR_ASSERT(result >= 0);
78  result = engine->RegisterEnumValue("inputEvents", "EV_AIRPLANE_FLAPS_LESS", EV_AIRPLANE_FLAPS_LESS ); ROR_ASSERT(result >= 0);
79  result = engine->RegisterEnumValue("inputEvents", "EV_AIRPLANE_FLAPS_MORE", EV_AIRPLANE_FLAPS_MORE ); ROR_ASSERT(result >= 0);
80  result = engine->RegisterEnumValue("inputEvents", "EV_AIRPLANE_FLAPS_NONE", EV_AIRPLANE_FLAPS_NONE ); ROR_ASSERT(result >= 0);
81  result = engine->RegisterEnumValue("inputEvents", "EV_AIRPLANE_PARKING_BRAKE", EV_AIRPLANE_PARKING_BRAKE ); ROR_ASSERT(result >= 0);
82  result = engine->RegisterEnumValue("inputEvents", "EV_AIRPLANE_REVERSE", EV_AIRPLANE_REVERSE ); ROR_ASSERT(result >= 0);
83  result = engine->RegisterEnumValue("inputEvents", "EV_AIRPLANE_RUDDER_LEFT", EV_AIRPLANE_RUDDER_LEFT ); ROR_ASSERT(result >= 0);
84  result = engine->RegisterEnumValue("inputEvents", "EV_AIRPLANE_RUDDER_RIGHT", EV_AIRPLANE_RUDDER_RIGHT ); ROR_ASSERT(result >= 0);
85  result = engine->RegisterEnumValue("inputEvents", "EV_AIRPLANE_STEER_LEFT", EV_AIRPLANE_STEER_LEFT ); ROR_ASSERT(result >= 0);
86  result = engine->RegisterEnumValue("inputEvents", "EV_AIRPLANE_STEER_RIGHT", EV_AIRPLANE_STEER_RIGHT ); ROR_ASSERT(result >= 0);
87  result = engine->RegisterEnumValue("inputEvents", "EV_AIRPLANE_THROTTLE", EV_AIRPLANE_THROTTLE ); ROR_ASSERT(result >= 0);
88  result = engine->RegisterEnumValue("inputEvents", "EV_AIRPLANE_THROTTLE_AXIS", EV_AIRPLANE_THROTTLE_AXIS ); ROR_ASSERT(result >= 0);
89  result = engine->RegisterEnumValue("inputEvents", "EV_AIRPLANE_THROTTLE_DOWN", EV_AIRPLANE_THROTTLE_DOWN ); ROR_ASSERT(result >= 0);
90  result = engine->RegisterEnumValue("inputEvents", "EV_AIRPLANE_THROTTLE_FULL", EV_AIRPLANE_THROTTLE_FULL ); ROR_ASSERT(result >= 0);
91  result = engine->RegisterEnumValue("inputEvents", "EV_AIRPLANE_THROTTLE_NO", EV_AIRPLANE_THROTTLE_NO ); ROR_ASSERT(result >= 0);
92  result = engine->RegisterEnumValue("inputEvents", "EV_AIRPLANE_THROTTLE_UP", EV_AIRPLANE_THROTTLE_UP ); ROR_ASSERT(result >= 0);
93  result = engine->RegisterEnumValue("inputEvents", "EV_AIRPLANE_TOGGLE_ENGINES", EV_AIRPLANE_TOGGLE_ENGINES ); ROR_ASSERT(result >= 0);
94  result = engine->RegisterEnumValue("inputEvents", "EV_BOAT_CENTER_RUDDER", EV_BOAT_CENTER_RUDDER ); ROR_ASSERT(result >= 0);
95  result = engine->RegisterEnumValue("inputEvents", "EV_BOAT_REVERSE", EV_BOAT_REVERSE ); ROR_ASSERT(result >= 0);
96  result = engine->RegisterEnumValue("inputEvents", "EV_BOAT_STEER_LEFT", EV_BOAT_STEER_LEFT ); ROR_ASSERT(result >= 0);
97  result = engine->RegisterEnumValue("inputEvents", "EV_BOAT_STEER_LEFT_AXIS", EV_BOAT_STEER_LEFT_AXIS ); ROR_ASSERT(result >= 0);
98  result = engine->RegisterEnumValue("inputEvents", "EV_BOAT_STEER_RIGHT", EV_BOAT_STEER_RIGHT ); ROR_ASSERT(result >= 0);
99  result = engine->RegisterEnumValue("inputEvents", "EV_BOAT_STEER_RIGHT_AXIS", EV_BOAT_STEER_RIGHT_AXIS ); ROR_ASSERT(result >= 0);
100  result = engine->RegisterEnumValue("inputEvents", "EV_BOAT_THROTTLE_AXIS", EV_BOAT_THROTTLE_AXIS ); ROR_ASSERT(result >= 0);
101  result = engine->RegisterEnumValue("inputEvents", "EV_BOAT_THROTTLE_DOWN", EV_BOAT_THROTTLE_DOWN ); ROR_ASSERT(result >= 0);
102  result = engine->RegisterEnumValue("inputEvents", "EV_BOAT_THROTTLE_UP", EV_BOAT_THROTTLE_UP ); ROR_ASSERT(result >= 0);
103  result = engine->RegisterEnumValue("inputEvents", "EV_SKY_DECREASE_TIME", EV_SKY_DECREASE_TIME ); ROR_ASSERT(result >= 0);
104  result = engine->RegisterEnumValue("inputEvents", "EV_SKY_DECREASE_TIME_FAST", EV_SKY_DECREASE_TIME_FAST ); ROR_ASSERT(result >= 0);
105  result = engine->RegisterEnumValue("inputEvents", "EV_SKY_INCREASE_TIME", EV_SKY_INCREASE_TIME ); ROR_ASSERT(result >= 0);
106  result = engine->RegisterEnumValue("inputEvents", "EV_SKY_INCREASE_TIME_FAST", EV_SKY_INCREASE_TIME_FAST ); ROR_ASSERT(result >= 0);
107  result = engine->RegisterEnumValue("inputEvents", "EV_CAMERA_CHANGE", EV_CAMERA_CHANGE ); ROR_ASSERT(result >= 0);
108  result = engine->RegisterEnumValue("inputEvents", "EV_CAMERA_DOWN", EV_CAMERA_DOWN ); ROR_ASSERT(result >= 0);
109  result = engine->RegisterEnumValue("inputEvents", "EV_CAMERA_FREE_MODE", EV_CAMERA_FREE_MODE ); ROR_ASSERT(result >= 0);
110  result = engine->RegisterEnumValue("inputEvents", "EV_CAMERA_FREE_MODE_FIX", EV_CAMERA_FREE_MODE_FIX ); ROR_ASSERT(result >= 0);
111  result = engine->RegisterEnumValue("inputEvents", "EV_CAMERA_LOOKBACK", EV_CAMERA_LOOKBACK ); ROR_ASSERT(result >= 0);
112  result = engine->RegisterEnumValue("inputEvents", "EV_CAMERA_RESET", EV_CAMERA_RESET ); ROR_ASSERT(result >= 0);
113  result = engine->RegisterEnumValue("inputEvents", "EV_CAMERA_ROTATE_DOWN", EV_CAMERA_ROTATE_DOWN ); ROR_ASSERT(result >= 0);
114  result = engine->RegisterEnumValue("inputEvents", "EV_CAMERA_ROTATE_LEFT", EV_CAMERA_ROTATE_LEFT ); ROR_ASSERT(result >= 0);
115  result = engine->RegisterEnumValue("inputEvents", "EV_CAMERA_ROTATE_RIGHT", EV_CAMERA_ROTATE_RIGHT ); ROR_ASSERT(result >= 0);
116  result = engine->RegisterEnumValue("inputEvents", "EV_CAMERA_ROTATE_UP", EV_CAMERA_ROTATE_UP ); ROR_ASSERT(result >= 0);
117  result = engine->RegisterEnumValue("inputEvents", "EV_CAMERA_UP", EV_CAMERA_UP ); ROR_ASSERT(result >= 0);
118  result = engine->RegisterEnumValue("inputEvents", "EV_CAMERA_ZOOM_IN", EV_CAMERA_ZOOM_IN ); ROR_ASSERT(result >= 0);
119  result = engine->RegisterEnumValue("inputEvents", "EV_CAMERA_ZOOM_IN_FAST", EV_CAMERA_ZOOM_IN_FAST ); ROR_ASSERT(result >= 0);
120  result = engine->RegisterEnumValue("inputEvents", "EV_CAMERA_ZOOM_OUT", EV_CAMERA_ZOOM_OUT ); ROR_ASSERT(result >= 0);
121  result = engine->RegisterEnumValue("inputEvents", "EV_CAMERA_ZOOM_OUT_FAST", EV_CAMERA_ZOOM_OUT_FAST ); ROR_ASSERT(result >= 0);
122  result = engine->RegisterEnumValue("inputEvents", "EV_CHARACTER_BACKWARDS", EV_CHARACTER_BACKWARDS ); ROR_ASSERT(result >= 0);
123  result = engine->RegisterEnumValue("inputEvents", "EV_CHARACTER_FORWARD", EV_CHARACTER_FORWARD ); ROR_ASSERT(result >= 0);
124  result = engine->RegisterEnumValue("inputEvents", "EV_CHARACTER_JUMP", EV_CHARACTER_JUMP ); ROR_ASSERT(result >= 0);
125  result = engine->RegisterEnumValue("inputEvents", "EV_CHARACTER_LEFT", EV_CHARACTER_LEFT ); ROR_ASSERT(result >= 0);
126  result = engine->RegisterEnumValue("inputEvents", "EV_CHARACTER_RIGHT", EV_CHARACTER_RIGHT ); ROR_ASSERT(result >= 0);
127  result = engine->RegisterEnumValue("inputEvents", "EV_CHARACTER_ROT_DOWN", EV_CHARACTER_ROT_DOWN ); ROR_ASSERT(result >= 0);
128  result = engine->RegisterEnumValue("inputEvents", "EV_CHARACTER_ROT_UP", EV_CHARACTER_ROT_UP ); ROR_ASSERT(result >= 0);
129  result = engine->RegisterEnumValue("inputEvents", "EV_CHARACTER_RUN", EV_CHARACTER_RUN ); ROR_ASSERT(result >= 0);
130  result = engine->RegisterEnumValue("inputEvents", "EV_CHARACTER_SIDESTEP_LEFT", EV_CHARACTER_SIDESTEP_LEFT ); ROR_ASSERT(result >= 0);
131  result = engine->RegisterEnumValue("inputEvents", "EV_CHARACTER_SIDESTEP_RIGHT", EV_CHARACTER_SIDESTEP_RIGHT ); ROR_ASSERT(result >= 0);
132 
133  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_01", EV_COMMANDS_01 ); ROR_ASSERT(result >= 0);
134  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_02", EV_COMMANDS_02 ); ROR_ASSERT(result >= 0);
135  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_03", EV_COMMANDS_03 ); ROR_ASSERT(result >= 0);
136  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_04", EV_COMMANDS_04 ); ROR_ASSERT(result >= 0);
137  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_05", EV_COMMANDS_05 ); ROR_ASSERT(result >= 0);
138  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_06", EV_COMMANDS_06 ); ROR_ASSERT(result >= 0);
139  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_07", EV_COMMANDS_07 ); ROR_ASSERT(result >= 0);
140  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_08", EV_COMMANDS_08 ); ROR_ASSERT(result >= 0);
141  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_09", EV_COMMANDS_09 ); ROR_ASSERT(result >= 0);
142  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_10", EV_COMMANDS_10 ); ROR_ASSERT(result >= 0);
143  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_11", EV_COMMANDS_11 ); ROR_ASSERT(result >= 0);
144  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_12", EV_COMMANDS_12 ); ROR_ASSERT(result >= 0);
145  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_13", EV_COMMANDS_13 ); ROR_ASSERT(result >= 0);
146  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_14", EV_COMMANDS_14 ); ROR_ASSERT(result >= 0);
147  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_15", EV_COMMANDS_15 ); ROR_ASSERT(result >= 0);
148  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_16", EV_COMMANDS_16 ); ROR_ASSERT(result >= 0);
149  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_17", EV_COMMANDS_17 ); ROR_ASSERT(result >= 0);
150  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_18", EV_COMMANDS_18 ); ROR_ASSERT(result >= 0);
151  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_19", EV_COMMANDS_19 ); ROR_ASSERT(result >= 0);
152  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_20", EV_COMMANDS_20 ); ROR_ASSERT(result >= 0);
153  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_21", EV_COMMANDS_21 ); ROR_ASSERT(result >= 0);
154  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_22", EV_COMMANDS_22 ); ROR_ASSERT(result >= 0);
155  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_23", EV_COMMANDS_23 ); ROR_ASSERT(result >= 0);
156  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_24", EV_COMMANDS_24 ); ROR_ASSERT(result >= 0);
157  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_25", EV_COMMANDS_25 ); ROR_ASSERT(result >= 0);
158  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_26", EV_COMMANDS_26 ); ROR_ASSERT(result >= 0);
159  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_27", EV_COMMANDS_27 ); ROR_ASSERT(result >= 0);
160  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_28", EV_COMMANDS_28 ); ROR_ASSERT(result >= 0);
161  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_29", EV_COMMANDS_29 ); ROR_ASSERT(result >= 0);
162  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_30", EV_COMMANDS_30 ); ROR_ASSERT(result >= 0);
163  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_31", EV_COMMANDS_31 ); ROR_ASSERT(result >= 0);
164  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_32", EV_COMMANDS_32 ); ROR_ASSERT(result >= 0);
165  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_33", EV_COMMANDS_33 ); ROR_ASSERT(result >= 0);
166  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_34", EV_COMMANDS_34 ); ROR_ASSERT(result >= 0);
167  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_35", EV_COMMANDS_35 ); ROR_ASSERT(result >= 0);
168  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_36", EV_COMMANDS_36 ); ROR_ASSERT(result >= 0);
169  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_37", EV_COMMANDS_37 ); ROR_ASSERT(result >= 0);
170  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_38", EV_COMMANDS_38 ); ROR_ASSERT(result >= 0);
171  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_39", EV_COMMANDS_39 ); ROR_ASSERT(result >= 0);
172  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_40", EV_COMMANDS_40 ); ROR_ASSERT(result >= 0);
173  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_41", EV_COMMANDS_41 ); ROR_ASSERT(result >= 0);
174  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_42", EV_COMMANDS_42 ); ROR_ASSERT(result >= 0);
175  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_43", EV_COMMANDS_43 ); ROR_ASSERT(result >= 0);
176  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_44", EV_COMMANDS_44 ); ROR_ASSERT(result >= 0);
177  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_45", EV_COMMANDS_45 ); ROR_ASSERT(result >= 0);
178  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_46", EV_COMMANDS_46 ); ROR_ASSERT(result >= 0);
179  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_47", EV_COMMANDS_47 ); ROR_ASSERT(result >= 0);
180  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_48", EV_COMMANDS_48 ); ROR_ASSERT(result >= 0);
181  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_49", EV_COMMANDS_49 ); ROR_ASSERT(result >= 0);
182  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_50", EV_COMMANDS_50 ); ROR_ASSERT(result >= 0);
183  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_51", EV_COMMANDS_51 ); ROR_ASSERT(result >= 0);
184  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_52", EV_COMMANDS_52 ); ROR_ASSERT(result >= 0);
185  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_53", EV_COMMANDS_53 ); ROR_ASSERT(result >= 0);
186  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_54", EV_COMMANDS_54 ); ROR_ASSERT(result >= 0);
187  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_55", EV_COMMANDS_55 ); ROR_ASSERT(result >= 0);
188  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_56", EV_COMMANDS_56 ); ROR_ASSERT(result >= 0);
189  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_57", EV_COMMANDS_57 ); ROR_ASSERT(result >= 0);
190  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_58", EV_COMMANDS_58 ); ROR_ASSERT(result >= 0);
191  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_59", EV_COMMANDS_59 ); ROR_ASSERT(result >= 0);
192  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_60", EV_COMMANDS_60 ); ROR_ASSERT(result >= 0);
193  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_61", EV_COMMANDS_61 ); ROR_ASSERT(result >= 0);
194  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_62", EV_COMMANDS_62 ); ROR_ASSERT(result >= 0);
195  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_63", EV_COMMANDS_63 ); ROR_ASSERT(result >= 0);
196  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_64", EV_COMMANDS_64 ); ROR_ASSERT(result >= 0);
197  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_65", EV_COMMANDS_65 ); ROR_ASSERT(result >= 0);
198  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_66", EV_COMMANDS_66 ); ROR_ASSERT(result >= 0);
199  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_67", EV_COMMANDS_67 ); ROR_ASSERT(result >= 0);
200  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_68", EV_COMMANDS_68 ); ROR_ASSERT(result >= 0);
201  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_69", EV_COMMANDS_69 ); ROR_ASSERT(result >= 0);
202  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_70", EV_COMMANDS_70 ); ROR_ASSERT(result >= 0);
203  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_71", EV_COMMANDS_71 ); ROR_ASSERT(result >= 0);
204  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_72", EV_COMMANDS_72 ); ROR_ASSERT(result >= 0);
205  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_73", EV_COMMANDS_73 ); ROR_ASSERT(result >= 0);
206  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_74", EV_COMMANDS_74 ); ROR_ASSERT(result >= 0);
207  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_75", EV_COMMANDS_75 ); ROR_ASSERT(result >= 0);
208  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_76", EV_COMMANDS_76 ); ROR_ASSERT(result >= 0);
209  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_77", EV_COMMANDS_77 ); ROR_ASSERT(result >= 0);
210  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_78", EV_COMMANDS_78 ); ROR_ASSERT(result >= 0);
211  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_79", EV_COMMANDS_79 ); ROR_ASSERT(result >= 0);
212  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_80", EV_COMMANDS_80 ); ROR_ASSERT(result >= 0);
213  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_81", EV_COMMANDS_81 ); ROR_ASSERT(result >= 0);
214  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_82", EV_COMMANDS_82 ); ROR_ASSERT(result >= 0);
215  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_83", EV_COMMANDS_83 ); ROR_ASSERT(result >= 0);
216  result = engine->RegisterEnumValue("inputEvents", "EV_COMMANDS_84", EV_COMMANDS_84 ); ROR_ASSERT(result >= 0);
217 
218  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_ACCELERATE_SIMULATION", EV_COMMON_ACCELERATE_SIMULATION ); ROR_ASSERT(result >= 0);
219  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_DECELERATE_SIMULATION", EV_COMMON_DECELERATE_SIMULATION ); ROR_ASSERT(result >= 0);
220  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_RESET_SIMULATION_PACE", EV_COMMON_RESET_SIMULATION_PACE ); ROR_ASSERT(result >= 0);
221  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_AUTOLOCK", EV_COMMON_AUTOLOCK ); ROR_ASSERT(result >= 0);
222  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_CONSOLE_TOGGLE", EV_COMMON_CONSOLE_TOGGLE ); ROR_ASSERT(result >= 0);
223  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_ENTER_CHATMODE", EV_COMMON_ENTER_CHATMODE ); ROR_ASSERT(result >= 0);
224  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_ENTER_OR_EXIT_TRUCK", EV_COMMON_ENTER_OR_EXIT_TRUCK ); ROR_ASSERT(result >= 0);
225  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_ENTER_NEXT_TRUCK", EV_COMMON_ENTER_NEXT_TRUCK ); ROR_ASSERT(result >= 0);
226  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_ENTER_PREVIOUS_TRUCK", EV_COMMON_ENTER_PREVIOUS_TRUCK); ROR_ASSERT(result >= 0);
227  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_REMOVE_CURRENT_TRUCK", EV_COMMON_REMOVE_CURRENT_TRUCK); ROR_ASSERT(result >= 0);
228  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_RESPAWN_LAST_TRUCK", EV_COMMON_RESPAWN_LAST_TRUCK ); ROR_ASSERT(result >= 0);
229  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_FOV_LESS", EV_COMMON_FOV_LESS ); ROR_ASSERT(result >= 0);
230  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_FOV_MORE", EV_COMMON_FOV_MORE ); ROR_ASSERT(result >= 0);
231  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_FOV_RESET", EV_COMMON_FOV_RESET ); ROR_ASSERT(result >= 0);
232  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_FULLSCREEN_TOGGLE", EV_COMMON_FULLSCREEN_TOGGLE ); ROR_ASSERT(result >= 0);
233  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_HIDE_GUI", EV_COMMON_HIDE_GUI ); ROR_ASSERT(result >= 0);
234  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_TOGGLE_DASHBOARD", EV_COMMON_TOGGLE_DASHBOARD ); ROR_ASSERT(result >= 0);
235  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_LOCK", EV_COMMON_LOCK ); ROR_ASSERT(result >= 0);
236  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_NETCHATDISPLAY", EV_COMMON_NETCHATDISPLAY ); ROR_ASSERT(result >= 0);
237  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_NETCHATMODE", EV_COMMON_NETCHATMODE ); ROR_ASSERT(result >= 0);
238  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_OUTPUT_POSITION", EV_COMMON_OUTPUT_POSITION ); ROR_ASSERT(result >= 0);
239  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_GET_NEW_VEHICLE", EV_COMMON_GET_NEW_VEHICLE ); ROR_ASSERT(result >= 0);
240  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_PRESSURE_LESS", EV_COMMON_PRESSURE_LESS ); ROR_ASSERT(result >= 0);
241  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_PRESSURE_MORE", EV_COMMON_PRESSURE_MORE ); ROR_ASSERT(result >= 0);
242  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_QUICKLOAD", EV_COMMON_QUICKLOAD ); ROR_ASSERT(result >= 0);
243  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_QUICKSAVE", EV_COMMON_QUICKSAVE ); ROR_ASSERT(result >= 0);
244  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_QUIT_GAME", EV_COMMON_QUIT_GAME ); ROR_ASSERT(result >= 0);
245  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_REPAIR_TRUCK", EV_COMMON_REPAIR_TRUCK ); ROR_ASSERT(result >= 0);
246  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_REPLAY_BACKWARD", EV_COMMON_REPLAY_BACKWARD ); ROR_ASSERT(result >= 0);
247  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_REPLAY_FAST_BACKWARD", EV_COMMON_REPLAY_FAST_BACKWARD); ROR_ASSERT(result >= 0);
248  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_REPLAY_FAST_FORWARD", EV_COMMON_REPLAY_FAST_FORWARD ); ROR_ASSERT(result >= 0);
249  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_REPLAY_FORWARD", EV_COMMON_REPLAY_FORWARD ); ROR_ASSERT(result >= 0);
250  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_RESCUE_TRUCK", EV_COMMON_RESCUE_TRUCK ); ROR_ASSERT(result >= 0);
251  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_RESET_TRUCK", EV_COMMON_RESET_TRUCK ); ROR_ASSERT(result >= 0);
252  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_TOGGLE_RESET_MODE", EV_COMMON_TOGGLE_RESET_MODE ); ROR_ASSERT(result >= 0);
253  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_ROPELOCK", EV_COMMON_ROPELOCK ); ROR_ASSERT(result >= 0);
254  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_SAVE_TERRAIN", EV_COMMON_SAVE_TERRAIN ); ROR_ASSERT(result >= 0);
255  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_SCREENSHOT", EV_COMMON_SCREENSHOT ); ROR_ASSERT(result >= 0);
256  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_SCREENSHOT_BIG", EV_COMMON_SCREENSHOT_BIG ); ROR_ASSERT(result >= 0);
257  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_SECURE_LOAD", EV_COMMON_SECURE_LOAD ); ROR_ASSERT(result >= 0);
258  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_SEND_CHAT", EV_COMMON_SEND_CHAT ); ROR_ASSERT(result >= 0);
259  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_TOGGLE_DEBUG_VIEW", EV_COMMON_TOGGLE_DEBUG_VIEW ); ROR_ASSERT(result >= 0);
260  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_CYCLE_DEBUG_VIEWS", EV_COMMON_CYCLE_DEBUG_VIEWS ); ROR_ASSERT(result >= 0);
261  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_TOGGLE_TERRAIN_EDITOR", EV_COMMON_TOGGLE_TERRAIN_EDITOR ); ROR_ASSERT(result >= 0);
262  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_TOGGLE_CUSTOM_PARTICLES", EV_COMMON_TOGGLE_CUSTOM_PARTICLES); ROR_ASSERT(result >= 0);
263  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_TOGGLE_MAT_DEBUG", EV_COMMON_TOGGLE_MAT_DEBUG ); ROR_ASSERT(result >= 0);
264  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_TOGGLE_REPLAY_MODE", EV_COMMON_TOGGLE_REPLAY_MODE ); ROR_ASSERT(result >= 0);
265  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_TOGGLE_PHYSICS", EV_COMMON_TOGGLE_PHYSICS ); ROR_ASSERT(result >= 0);
266  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_TOGGLE_STATS", EV_COMMON_TOGGLE_STATS ); ROR_ASSERT(result >= 0);
267  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_TOGGLE_TRUCK_BEACONS", EV_COMMON_TOGGLE_TRUCK_BEACONS); ROR_ASSERT(result >= 0);
268  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_TOGGLE_TRUCK_LOW_BEAMS", EV_COMMON_TOGGLE_TRUCK_LOW_BEAMS); ROR_ASSERT(result >= 0);
269  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_TOGGLE_TRUCK_HIGH_BEAMS", EV_COMMON_TOGGLE_TRUCK_HIGH_BEAMS); ROR_ASSERT(result >= 0);
270  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_TOGGLE_TRUCK_FOG_LIGHTS", EV_COMMON_TOGGLE_TRUCK_FOG_LIGHTS); ROR_ASSERT(result >= 0);
271  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_TRUCK_INFO", EV_COMMON_TRUCK_INFO ); ROR_ASSERT(result >= 0);
272  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_TRUCK_DESCRIPTION", EV_COMMON_TRUCK_DESCRIPTION ); ROR_ASSERT(result >= 0);
273  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_TRUCK_REMOVE", EV_COMMON_TRUCK_REMOVE ); ROR_ASSERT(result >= 0);
274  result = engine->RegisterEnumValue("inputEvents", "EV_GRASS_LESS", EV_GRASS_LESS ); ROR_ASSERT(result >= 0);
275  result = engine->RegisterEnumValue("inputEvents", "EV_GRASS_MORE", EV_GRASS_MORE ); ROR_ASSERT(result >= 0);
276  result = engine->RegisterEnumValue("inputEvents", "EV_GRASS_MOST", EV_GRASS_MOST ); ROR_ASSERT(result >= 0);
277  result = engine->RegisterEnumValue("inputEvents", "EV_GRASS_NONE", EV_GRASS_NONE ); ROR_ASSERT(result >= 0);
278  result = engine->RegisterEnumValue("inputEvents", "EV_GRASS_SAVE", EV_GRASS_SAVE ); ROR_ASSERT(result >= 0);
279  result = engine->RegisterEnumValue("inputEvents", "EV_MENU_DOWN", EV_MENU_DOWN ); ROR_ASSERT(result >= 0);
280  result = engine->RegisterEnumValue("inputEvents", "EV_MENU_LEFT", EV_MENU_LEFT ); ROR_ASSERT(result >= 0);
281  result = engine->RegisterEnumValue("inputEvents", "EV_MENU_RIGHT", EV_MENU_RIGHT ); ROR_ASSERT(result >= 0);
282  result = engine->RegisterEnumValue("inputEvents", "EV_MENU_SELECT", EV_MENU_SELECT ); ROR_ASSERT(result >= 0);
283  result = engine->RegisterEnumValue("inputEvents", "EV_MENU_UP", EV_MENU_UP ); ROR_ASSERT(result >= 0);
284  result = engine->RegisterEnumValue("inputEvents", "EV_SURVEY_MAP_TOGGLE_ICONS", EV_SURVEY_MAP_TOGGLE_ICONS ); ROR_ASSERT(result >= 0);
285  result = engine->RegisterEnumValue("inputEvents", "EV_SURVEY_MAP_CYCLE", EV_SURVEY_MAP_CYCLE ); ROR_ASSERT(result >= 0);
286  result = engine->RegisterEnumValue("inputEvents", "EV_SURVEY_MAP_TOGGLE", EV_SURVEY_MAP_TOGGLE ); ROR_ASSERT(result >= 0);
287  result = engine->RegisterEnumValue("inputEvents", "EV_SURVEY_MAP_ZOOM_IN", EV_SURVEY_MAP_ZOOM_IN ); ROR_ASSERT(result >= 0);
288  result = engine->RegisterEnumValue("inputEvents", "EV_SURVEY_MAP_ZOOM_OUT", EV_SURVEY_MAP_ZOOM_OUT ); ROR_ASSERT(result >= 0);
289 
290  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_ACCELERATE", EV_TRUCK_ACCELERATE ); ROR_ASSERT(result >= 0);
291  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_ACCELERATE_MODIFIER_25", EV_TRUCK_ACCELERATE_MODIFIER_25 ); ROR_ASSERT(result >= 0);
292  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_ACCELERATE_MODIFIER_50", EV_TRUCK_ACCELERATE_MODIFIER_50 ); ROR_ASSERT(result >= 0);
293  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_ANTILOCK_BRAKE", EV_TRUCK_ANTILOCK_BRAKE ); ROR_ASSERT(result >= 0);
294  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_AUTOSHIFT_DOWN", EV_TRUCK_AUTOSHIFT_DOWN ); ROR_ASSERT(result >= 0);
295  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_AUTOSHIFT_UP", EV_TRUCK_AUTOSHIFT_UP ); ROR_ASSERT(result >= 0);
296  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_BLINK_LEFT", EV_TRUCK_BLINK_LEFT ); ROR_ASSERT(result >= 0);
297  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_BLINK_RIGHT", EV_TRUCK_BLINK_RIGHT ); ROR_ASSERT(result >= 0);
298  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_BLINK_WARN", EV_TRUCK_BLINK_WARN ); ROR_ASSERT(result >= 0);
299  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_BRAKE", EV_TRUCK_BRAKE ); ROR_ASSERT(result >= 0);
300  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_BRAKE_MODIFIER_25", EV_TRUCK_BRAKE_MODIFIER_25 ); ROR_ASSERT(result >= 0);
301  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_BRAKE_MODIFIER_50", EV_TRUCK_BRAKE_MODIFIER_50 ); ROR_ASSERT(result >= 0);
302  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_CRUISE_CONTROL", EV_TRUCK_CRUISE_CONTROL ); ROR_ASSERT(result >= 0);
303  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_CRUISE_CONTROL_ACCL", EV_TRUCK_CRUISE_CONTROL_ACCL ); ROR_ASSERT(result >= 0);
304  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_CRUISE_CONTROL_DECL", EV_TRUCK_CRUISE_CONTROL_DECL ); ROR_ASSERT(result >= 0);
305  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_CRUISE_CONTROL_READJUST", EV_TRUCK_CRUISE_CONTROL_READJUST); ROR_ASSERT(result >= 0);
306  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_HORN", EV_TRUCK_HORN ); ROR_ASSERT(result >= 0);
307  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_LEFT_MIRROR_LEFT", EV_TRUCK_LEFT_MIRROR_LEFT ); ROR_ASSERT(result >= 0);
308  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_LEFT_MIRROR_RIGHT", EV_TRUCK_LEFT_MIRROR_RIGHT ); ROR_ASSERT(result >= 0);
309  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_LIGHTTOGGLE01", EV_TRUCK_LIGHTTOGGLE01 ); ROR_ASSERT(result >= 0);
310  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_LIGHTTOGGLE02", EV_TRUCK_LIGHTTOGGLE02 ); ROR_ASSERT(result >= 0);
311  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_LIGHTTOGGLE03", EV_TRUCK_LIGHTTOGGLE03 ); ROR_ASSERT(result >= 0);
312  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_LIGHTTOGGLE04", EV_TRUCK_LIGHTTOGGLE04 ); ROR_ASSERT(result >= 0);
313  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_LIGHTTOGGLE05", EV_TRUCK_LIGHTTOGGLE05 ); ROR_ASSERT(result >= 0);
314  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_LIGHTTOGGLE06", EV_TRUCK_LIGHTTOGGLE06 ); ROR_ASSERT(result >= 0);
315  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_LIGHTTOGGLE07", EV_TRUCK_LIGHTTOGGLE07 ); ROR_ASSERT(result >= 0);
316  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_LIGHTTOGGLE08", EV_TRUCK_LIGHTTOGGLE08 ); ROR_ASSERT(result >= 0);
317  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_LIGHTTOGGLE09", EV_TRUCK_LIGHTTOGGLE09 ); ROR_ASSERT(result >= 0);
318  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_LIGHTTOGGLE10", EV_TRUCK_LIGHTTOGGLE10 ); ROR_ASSERT(result >= 0);
319  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_MANUAL_CLUTCH", EV_TRUCK_MANUAL_CLUTCH ); ROR_ASSERT(result >= 0);
320  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_PARKING_BRAKE", EV_TRUCK_PARKING_BRAKE ); ROR_ASSERT(result >= 0);
321  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_TRAILER_PARKING_BRAKE", EV_TRUCK_TRAILER_PARKING_BRAKE); ROR_ASSERT(result >= 0);
322  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_RIGHT_MIRROR_LEFT", EV_TRUCK_RIGHT_MIRROR_LEFT ); ROR_ASSERT(result >= 0);
323  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_RIGHT_MIRROR_RIGHT", EV_TRUCK_RIGHT_MIRROR_RIGHT ); ROR_ASSERT(result >= 0);
324  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_SHIFT_DOWN", EV_TRUCK_SHIFT_DOWN ); ROR_ASSERT(result >= 0);
325  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_SHIFT_GEAR01", EV_TRUCK_SHIFT_GEAR01 ); ROR_ASSERT(result >= 0);
326  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_SHIFT_GEAR02", EV_TRUCK_SHIFT_GEAR02 ); ROR_ASSERT(result >= 0);
327  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_SHIFT_GEAR03", EV_TRUCK_SHIFT_GEAR03 ); ROR_ASSERT(result >= 0);
328  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_SHIFT_GEAR04", EV_TRUCK_SHIFT_GEAR04 ); ROR_ASSERT(result >= 0);
329  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_SHIFT_GEAR05", EV_TRUCK_SHIFT_GEAR05 ); ROR_ASSERT(result >= 0);
330  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_SHIFT_GEAR06", EV_TRUCK_SHIFT_GEAR06 ); ROR_ASSERT(result >= 0);
331  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_SHIFT_GEAR07", EV_TRUCK_SHIFT_GEAR07 ); ROR_ASSERT(result >= 0);
332  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_SHIFT_GEAR08", EV_TRUCK_SHIFT_GEAR08 ); ROR_ASSERT(result >= 0);
333  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_SHIFT_GEAR09", EV_TRUCK_SHIFT_GEAR09 ); ROR_ASSERT(result >= 0);
334  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_SHIFT_GEAR10", EV_TRUCK_SHIFT_GEAR10 ); ROR_ASSERT(result >= 0);
335  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_SHIFT_GEAR11", EV_TRUCK_SHIFT_GEAR11 ); ROR_ASSERT(result >= 0);
336  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_SHIFT_GEAR12", EV_TRUCK_SHIFT_GEAR12 ); ROR_ASSERT(result >= 0);
337  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_SHIFT_GEAR13", EV_TRUCK_SHIFT_GEAR13 ); ROR_ASSERT(result >= 0);
338  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_SHIFT_GEAR14", EV_TRUCK_SHIFT_GEAR14 ); ROR_ASSERT(result >= 0);
339  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_SHIFT_GEAR15", EV_TRUCK_SHIFT_GEAR15 ); ROR_ASSERT(result >= 0);
340  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_SHIFT_GEAR16", EV_TRUCK_SHIFT_GEAR16 ); ROR_ASSERT(result >= 0);
341  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_SHIFT_GEAR17", EV_TRUCK_SHIFT_GEAR17 ); ROR_ASSERT(result >= 0);
342  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_SHIFT_GEAR18", EV_TRUCK_SHIFT_GEAR18 ); ROR_ASSERT(result >= 0);
343  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_SHIFT_GEAR_REVERSE", EV_TRUCK_SHIFT_GEAR_REVERSE ); ROR_ASSERT(result >= 0);
344  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_SHIFT_HIGHRANGE", EV_TRUCK_SHIFT_HIGHRANGE ); ROR_ASSERT(result >= 0);
345  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_SHIFT_LOWRANGE", EV_TRUCK_SHIFT_LOWRANGE ); ROR_ASSERT(result >= 0);
346  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_SHIFT_MIDRANGE", EV_TRUCK_SHIFT_MIDRANGE ); ROR_ASSERT(result >= 0);
347  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_SHIFT_NEUTRAL", EV_TRUCK_SHIFT_NEUTRAL ); ROR_ASSERT(result >= 0);
348  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_SHIFT_UP", EV_TRUCK_SHIFT_UP ); ROR_ASSERT(result >= 0);
349  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_STARTER", EV_TRUCK_STARTER ); ROR_ASSERT(result >= 0);
350  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_STEER_LEFT", EV_TRUCK_STEER_LEFT ); ROR_ASSERT(result >= 0);
351  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_STEER_RIGHT", EV_TRUCK_STEER_RIGHT ); ROR_ASSERT(result >= 0);
352  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_SWITCH_SHIFT_MODES", EV_TRUCK_SWITCH_SHIFT_MODES ); ROR_ASSERT(result >= 0);
353  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_TOGGLE_CONTACT", EV_TRUCK_TOGGLE_CONTACT ); ROR_ASSERT(result >= 0);
354  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_TOGGLE_FORWARDCOMMANDS", EV_TRUCK_TOGGLE_FORWARDCOMMANDS ); ROR_ASSERT(result >= 0);
355  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_TOGGLE_IMPORTCOMMANDS", EV_TRUCK_TOGGLE_IMPORTCOMMANDS); ROR_ASSERT(result >= 0);
356  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_TOGGLE_INTER_AXLE_DIFF", EV_TRUCK_TOGGLE_INTER_AXLE_DIFF ); ROR_ASSERT(result >= 0);
357  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_TOGGLE_INTER_WHEEL_DIFF", EV_TRUCK_TOGGLE_INTER_WHEEL_DIFF); ROR_ASSERT(result >= 0);
358  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_TOGGLE_PHYSICS", EV_TRUCK_TOGGLE_PHYSICS ); ROR_ASSERT(result >= 0);
359  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_TOGGLE_TCASE_4WD_MODE", EV_TRUCK_TOGGLE_TCASE_4WD_MODE); ROR_ASSERT(result >= 0);
360  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_TOGGLE_TCASE_GEAR_RATIO", EV_TRUCK_TOGGLE_TCASE_GEAR_RATIO); ROR_ASSERT(result >= 0);
361  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_TOGGLE_VIDEOCAMERA", EV_TRUCK_TOGGLE_VIDEOCAMERA ); ROR_ASSERT(result >= 0);
362  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCK_TRACTION_CONTROL", EV_TRUCK_TRACTION_CONTROL ); ROR_ASSERT(result >= 0);
363 
364  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_QUICKSAVE_01", EV_COMMON_QUICKSAVE_01 ); ROR_ASSERT(result >= 0);
365  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_QUICKSAVE_02", EV_COMMON_QUICKSAVE_02 ); ROR_ASSERT(result >= 0);
366  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_QUICKSAVE_03", EV_COMMON_QUICKSAVE_03 ); ROR_ASSERT(result >= 0);
367  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_QUICKSAVE_04", EV_COMMON_QUICKSAVE_04 ); ROR_ASSERT(result >= 0);
368  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_QUICKSAVE_05", EV_COMMON_QUICKSAVE_05 ); ROR_ASSERT(result >= 0);
369  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_QUICKSAVE_06", EV_COMMON_QUICKSAVE_06 ); ROR_ASSERT(result >= 0);
370  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_QUICKSAVE_07", EV_COMMON_QUICKSAVE_07 ); ROR_ASSERT(result >= 0);
371  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_QUICKSAVE_08", EV_COMMON_QUICKSAVE_08 ); ROR_ASSERT(result >= 0);
372  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_QUICKSAVE_09", EV_COMMON_QUICKSAVE_09 ); ROR_ASSERT(result >= 0);
373  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_QUICKSAVE_10", EV_COMMON_QUICKSAVE_10 ); ROR_ASSERT(result >= 0);
374 
375  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_QUICKLOAD_01", EV_COMMON_QUICKLOAD_01 ); ROR_ASSERT(result >= 0);
376  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_QUICKLOAD_02", EV_COMMON_QUICKLOAD_02 ); ROR_ASSERT(result >= 0);
377  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_QUICKLOAD_03", EV_COMMON_QUICKLOAD_03 ); ROR_ASSERT(result >= 0);
378  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_QUICKLOAD_04", EV_COMMON_QUICKLOAD_04 ); ROR_ASSERT(result >= 0);
379  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_QUICKLOAD_05", EV_COMMON_QUICKLOAD_05 ); ROR_ASSERT(result >= 0);
380  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_QUICKLOAD_06", EV_COMMON_QUICKLOAD_06 ); ROR_ASSERT(result >= 0);
381  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_QUICKLOAD_07", EV_COMMON_QUICKLOAD_07 ); ROR_ASSERT(result >= 0);
382  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_QUICKLOAD_08", EV_COMMON_QUICKLOAD_08 ); ROR_ASSERT(result >= 0);
383  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_QUICKLOAD_09", EV_COMMON_QUICKLOAD_09 ); ROR_ASSERT(result >= 0);
384  result = engine->RegisterEnumValue("inputEvents", "EV_COMMON_QUICKLOAD_10", EV_COMMON_QUICKLOAD_10 ); ROR_ASSERT(result >= 0);
385 
386  result = engine->RegisterEnumValue("inputEvents", "EV_TRUCKEDIT_RELOAD", EV_TRUCKEDIT_RELOAD ); ROR_ASSERT(result >= 0);
387 
388  result = engine->RegisterEnumValue("inputEvents", "EV_ROAD_EDITOR_POINT_INSERT", EV_ROAD_EDITOR_POINT_INSERT ); ROR_ASSERT(result >= 0);
389  result = engine->RegisterEnumValue("inputEvents", "EV_ROAD_EDITOR_POINT_GOTO", EV_ROAD_EDITOR_POINT_GOTO ); ROR_ASSERT(result >= 0);
390  result = engine->RegisterEnumValue("inputEvents", "EV_ROAD_EDITOR_POINT_SET_POS", EV_ROAD_EDITOR_POINT_SET_POS ); ROR_ASSERT(result >= 0);
391  result = engine->RegisterEnumValue("inputEvents", "EV_ROAD_EDITOR_POINT_DELETE", EV_ROAD_EDITOR_POINT_DELETE ); ROR_ASSERT(result >= 0);
392  result = engine->RegisterEnumValue("inputEvents", "EV_ROAD_EDITOR_REBUILD_MESH", EV_ROAD_EDITOR_REBUILD_MESH ); ROR_ASSERT(result >= 0);
393 }
394 
395 void registerKeyCodeEnum(asIScriptEngine* engine)
396 {
397  // Names are a blend of OIS and SDL.
398  // Values are OIS currently, but can be changed to SDL equivalents.
399  // ----------------------------------------------------------------
400  int result = 0;
401 
402  result = engine->RegisterEnum("keyCodes"); ROR_ASSERT(result >= 0);
403 
404  // Numpad
405  result = engine->RegisterEnumValue("keyCodes", "KC_NUMPAD1", KC_NUMPAD1); ROR_ASSERT(result >= 0);
406  result = engine->RegisterEnumValue("keyCodes", "KC_NUMPAD2", KC_NUMPAD2); ROR_ASSERT(result >= 0);
407  result = engine->RegisterEnumValue("keyCodes", "KC_NUMPAD3", KC_NUMPAD3); ROR_ASSERT(result >= 0);
408  result = engine->RegisterEnumValue("keyCodes", "KC_NUMPAD4", KC_NUMPAD4); ROR_ASSERT(result >= 0);
409  result = engine->RegisterEnumValue("keyCodes", "KC_NUMPAD5", KC_NUMPAD5); ROR_ASSERT(result >= 0);
410  result = engine->RegisterEnumValue("keyCodes", "KC_NUMPAD6", KC_NUMPAD6); ROR_ASSERT(result >= 0);
411  result = engine->RegisterEnumValue("keyCodes", "KC_NUMPAD7", KC_NUMPAD7); ROR_ASSERT(result >= 0);
412  result = engine->RegisterEnumValue("keyCodes", "KC_NUMPAD8", KC_NUMPAD8); ROR_ASSERT(result >= 0);
413  result = engine->RegisterEnumValue("keyCodes", "KC_NUMPAD9", KC_NUMPAD9); ROR_ASSERT(result >= 0);
414  result = engine->RegisterEnumValue("keyCodes", "KC_NUMPAD0", KC_NUMPAD0); ROR_ASSERT(result >= 0);
415 
416  // Number keys (not the numpad)
417  result = engine->RegisterEnumValue("keyCodes", "KC_1", KC_1); ROR_ASSERT(result >= 0);
418  result = engine->RegisterEnumValue("keyCodes", "KC_2", KC_2); ROR_ASSERT(result >= 0);
419  result = engine->RegisterEnumValue("keyCodes", "KC_3", KC_3); ROR_ASSERT(result >= 0);
420  result = engine->RegisterEnumValue("keyCodes", "KC_4", KC_4); ROR_ASSERT(result >= 0);
421  result = engine->RegisterEnumValue("keyCodes", "KC_5", KC_5); ROR_ASSERT(result >= 0);
422  result = engine->RegisterEnumValue("keyCodes", "KC_6", KC_6); ROR_ASSERT(result >= 0);
423  result = engine->RegisterEnumValue("keyCodes", "KC_7", KC_7); ROR_ASSERT(result >= 0);
424  result = engine->RegisterEnumValue("keyCodes", "KC_8", KC_8); ROR_ASSERT(result >= 0);
425  result = engine->RegisterEnumValue("keyCodes", "KC_9", KC_9); ROR_ASSERT(result >= 0);
426  result = engine->RegisterEnumValue("keyCodes", "KC_0", KC_0); ROR_ASSERT(result >= 0);
427 
428  // Function keys
429  result = engine->RegisterEnumValue("keyCodes", "KC_F1", KC_F1); ROR_ASSERT(result >= 0);
430  result = engine->RegisterEnumValue("keyCodes", "KC_F2", KC_F2); ROR_ASSERT(result >= 0);
431  result = engine->RegisterEnumValue("keyCodes", "KC_F3", KC_F3); ROR_ASSERT(result >= 0);
432  result = engine->RegisterEnumValue("keyCodes", "KC_F4", KC_F4); ROR_ASSERT(result >= 0);
433  result = engine->RegisterEnumValue("keyCodes", "KC_F5", KC_F5); ROR_ASSERT(result >= 0);
434  result = engine->RegisterEnumValue("keyCodes", "KC_F6", KC_F6); ROR_ASSERT(result >= 0);
435  result = engine->RegisterEnumValue("keyCodes", "KC_F7", KC_F7); ROR_ASSERT(result >= 0);
436  result = engine->RegisterEnumValue("keyCodes", "KC_F8", KC_F8); ROR_ASSERT(result >= 0);
437  result = engine->RegisterEnumValue("keyCodes", "KC_F9", KC_F9); ROR_ASSERT(result >= 0);
438  result = engine->RegisterEnumValue("keyCodes", "KC_F10", KC_F10); ROR_ASSERT(result >= 0);
439  result = engine->RegisterEnumValue("keyCodes", "KC_F11", KC_F11); ROR_ASSERT(result >= 0);
440  result = engine->RegisterEnumValue("keyCodes", "KC_F12", KC_F12); ROR_ASSERT(result >= 0);
441 
442  // Edit keys
443  result = engine->RegisterEnumValue("keyCodes", "KC_INSERT", KC_INSERT); ROR_ASSERT(result >= 0);
444  result = engine->RegisterEnumValue("keyCodes", "KC_DELETE", KC_DELETE); ROR_ASSERT(result >= 0);
445  result = engine->RegisterEnumValue("keyCodes", "KC_BACKSPACE", KC_BACK); ROR_ASSERT(result >= 0);
446  result = engine->RegisterEnumValue("keyCodes", "KC_CAPSLOCK", KC_CAPITAL); ROR_ASSERT(result >= 0);
447  result = engine->RegisterEnumValue("keyCodes", "KC_NUMLOCK", KC_NUMLOCK); ROR_ASSERT(result >= 0);
448  result = engine->RegisterEnumValue("keyCodes", "KC_SCROLLLOCK", KC_SCROLL ); ROR_ASSERT(result >= 0);
449  result = engine->RegisterEnumValue("keyCodes", "KC_TAB", KC_TAB); ROR_ASSERT(result >= 0);
450 
451  // Navigation keys
452  result = engine->RegisterEnumValue("keyCodes", "KC_ESCAPE", KC_ESCAPE); ROR_ASSERT(result >= 0);
453  result = engine->RegisterEnumValue("keyCodes", "KC_RETURN", KC_RETURN); ROR_ASSERT(result >= 0);
454  result = engine->RegisterEnumValue("keyCodes", "KC_LEFT", KC_LEFT); ROR_ASSERT(result >= 0);
455  result = engine->RegisterEnumValue("keyCodes", "KC_RIGHT", KC_RIGHT); ROR_ASSERT(result >= 0);
456  result = engine->RegisterEnumValue("keyCodes", "KC_HOME", KC_HOME); ROR_ASSERT(result >= 0);
457  result = engine->RegisterEnumValue("keyCodes", "KC_UP", KC_UP); ROR_ASSERT(result >= 0);
458  result = engine->RegisterEnumValue("keyCodes", "KC_PGUP", KC_PGUP); ROR_ASSERT(result >= 0);
459  result = engine->RegisterEnumValue("keyCodes", "KC_END", KC_END); ROR_ASSERT(result >= 0);
460  result = engine->RegisterEnumValue("keyCodes", "KC_DOWN", KC_DOWN); ROR_ASSERT(result >= 0);
461  result = engine->RegisterEnumValue("keyCodes", "KC_PGDOWN", KC_PGDOWN); ROR_ASSERT(result >= 0);
462  result = engine->RegisterEnumValue("keyCodes", "KC_PAUSE", KC_PAUSE); ROR_ASSERT(result >= 0);
463 
464  // Modifiers
465  result = engine->RegisterEnumValue("keyCodes", "KC_LCTRL",KC_LCONTROL ); ROR_ASSERT(result >= 0);
466  result = engine->RegisterEnumValue("keyCodes", "KC_RCTRL",KC_RCONTROL ); ROR_ASSERT(result >= 0);
467  result = engine->RegisterEnumValue("keyCodes", "KC_LSHIFT", KC_LSHIFT ); ROR_ASSERT(result >= 0);
468  result = engine->RegisterEnumValue("keyCodes", "KC_RSHIFT", KC_RSHIFT ); ROR_ASSERT(result >= 0);
469  result = engine->RegisterEnumValue("keyCodes", "KC_LALT",KC_LMENU); ROR_ASSERT(result >= 0);
470  result = engine->RegisterEnumValue("keyCodes", "KC_RALT",KC_RMENU); ROR_ASSERT(result >= 0);
471  result = engine->RegisterEnumValue("keyCodes", "KC_LWIN", KC_LWIN); ROR_ASSERT(result >= 0);
472  result = engine->RegisterEnumValue("keyCodes", "KC_RWIN", KC_RWIN); ROR_ASSERT(result >= 0);
473 
474  // Special characters
475  result = engine->RegisterEnumValue("keyCodes", "KC_MINUS", KC_MINUS); ROR_ASSERT(result >= 0);
476  result = engine->RegisterEnumValue("keyCodes", "KC_EQUALS", KC_EQUALS); ROR_ASSERT(result >= 0);
477  result = engine->RegisterEnumValue("keyCodes", "KC_LBRACKET", KC_LBRACKET ); ROR_ASSERT(result >= 0);
478  result = engine->RegisterEnumValue("keyCodes", "KC_RBRACKET", KC_RBRACKET ); ROR_ASSERT(result >= 0);
479  result = engine->RegisterEnumValue("keyCodes", "KC_SEMICOLON", KC_SEMICOLON ); ROR_ASSERT(result >= 0);
480  result = engine->RegisterEnumValue("keyCodes", "KC_APOSTROPHE", KC_APOSTROPHE); ROR_ASSERT(result >= 0);
481  result = engine->RegisterEnumValue("keyCodes", "KC_GRAVE", KC_GRAVE); ROR_ASSERT(result >= 0);
482  result = engine->RegisterEnumValue("keyCodes", "KC_BACKSLASH", KC_BACKSLASH ); ROR_ASSERT(result >= 0);
483  result = engine->RegisterEnumValue("keyCodes", "KC_COMMA", KC_COMMA); ROR_ASSERT(result >= 0);
484  result = engine->RegisterEnumValue("keyCodes", "KC_PERIOD", KC_PERIOD ); ROR_ASSERT(result >= 0);
485  result = engine->RegisterEnumValue("keyCodes", "KC_SLASH", KC_SLASH); ROR_ASSERT(result >= 0);
486  result = engine->RegisterEnumValue("keyCodes", "KC_MULTIPLY", KC_MULTIPLY ); ROR_ASSERT(result >= 0);
487  result = engine->RegisterEnumValue("keyCodes", "KC_SPACE", KC_SPACE); ROR_ASSERT(result >= 0);
488  result = engine->RegisterEnumValue("keyCodes", "KC_SUBTRACT", KC_SUBTRACT ); ROR_ASSERT(result >= 0);
489  result = engine->RegisterEnumValue("keyCodes", "KC_ADD", KC_ADD); ROR_ASSERT(result >= 0);
490 }
491 
492 void RoR::RegisterInputEngine(asIScriptEngine* engine)
493 {
494  registerEventTypeEnum(engine);
495  registerKeyCodeEnum(engine);
497 }
RoR::InputEngine
Manages controller configuration, evaluates input events.
Definition: InputEngine.h:458
Script2Game::KC_SUBTRACT
enum Script2Game::inputEvents KC_SUBTRACT
ROR_ASSERT
#define ROR_ASSERT(_EXPR)
Definition: Application.h:40
Script2Game::KC_4
enum Script2Game::inputEvents KC_4
Script2Game::KC_NUMPAD1
enum Script2Game::inputEvents KC_NUMPAD1
RoR::EV_COMMON_SCREENSHOT
@ EV_COMMON_SCREENSHOT
take a screenshot
Definition: InputEngine.h:261
RoR::EV_AIRPLANE_RUDDER_RIGHT
@ EV_AIRPLANE_RUDDER_RIGHT
rudder right
Definition: InputEngine.h:91
RoR::EV_COMMANDS_83
@ EV_COMMANDS_83
Command 83.
Definition: InputEngine.h:221
registerKeyCodeEnum
void registerKeyCodeEnum(asIScriptEngine *engine)
Definition: InputEngineAngelscript.cpp:395
RoR::EV_COMMANDS_08
@ EV_COMMANDS_08
Command 8.
Definition: InputEngine.h:146
RoR::EV_AIRPLANE_THROTTLE
@ EV_AIRPLANE_THROTTLE
Definition: InputEngine.h:94
RoR::EV_COMMANDS_72
@ EV_COMMANDS_72
Command 72.
Definition: InputEngine.h:210
RoR::EV_SURVEY_MAP_CYCLE
@ EV_SURVEY_MAP_CYCLE
cycle overview-map mode
Definition: InputEngine.h:292
RoR::EV_CAMERA_ZOOM_OUT_FAST
@ EV_CAMERA_ZOOM_OUT_FAST
zoom camera out faster
Definition: InputEngine.h:128
RoR::EV_COMMON_REPLAY_FORWARD
@ EV_COMMON_REPLAY_FORWARD
Definition: InputEngine.h:255
RoR::EV_COMMANDS_66
@ EV_COMMANDS_66
Command 66.
Definition: InputEngine.h:204
RoR::EV_COMMANDS_06
@ EV_COMMANDS_06
Command 6.
Definition: InputEngine.h:144
RoR::EV_SURVEY_MAP_TOGGLE
@ EV_SURVEY_MAP_TOGGLE
toggle overview-map mode
Definition: InputEngine.h:293
Script2Game::KC_INSERT
enum Script2Game::inputEvents KC_INSERT
RoR::EV_AIRPLANE_THROTTLE_DOWN
@ EV_AIRPLANE_THROTTLE_DOWN
decreases the airplane thrust
Definition: InputEngine.h:96
RoR::EV_COMMANDS_37
@ EV_COMMANDS_37
Command 37.
Definition: InputEngine.h:175
Script2Game::KC_1
enum Script2Game::inputEvents KC_1
RoR::EV_GRASS_MORE
@ EV_GRASS_MORE
EXPERIMENTAL: add some grass.
Definition: InputEngine.h:282
Script2Game::KC_HOME
enum Script2Game::inputEvents KC_HOME
RoR::EV_TRUCK_BRAKE_MODIFIER_50
@ EV_TRUCK_BRAKE_MODIFIER_50
brake with 50 percent pedal input
Definition: InputEngine.h:308
Script2Game::KC_LBRACKET
enum Script2Game::inputEvents KC_LBRACKET
Script2Game::KC_PAUSE
enum Script2Game::inputEvents KC_PAUSE
RoR::EV_TRUCK_SHIFT_UP
@ EV_TRUCK_SHIFT_UP
shift one gear up in manual transmission mode
Definition: InputEngine.h:355
RoR::EV_COMMANDS_60
@ EV_COMMANDS_60
Command 50.
Definition: InputEngine.h:198
RoR::EV_COMMANDS_58
@ EV_COMMANDS_58
Command 58.
Definition: InputEngine.h:196
Script2Game::KC_NUMPAD7
enum Script2Game::inputEvents KC_NUMPAD7
RoR::EV_COMMANDS_40
@ EV_COMMANDS_40
Command 40.
Definition: InputEngine.h:178
RoR::EV_COMMON_RESET_TRUCK
@ EV_COMMON_RESET_TRUCK
reset truck to original starting position
Definition: InputEngine.h:257
RoR::EV_COMMON_QUICKLOAD_10
@ EV_COMMON_QUICKLOAD_10
Definition: InputEngine.h:392
RoR::EV_COMMON_REPAIR_TRUCK
@ EV_COMMON_REPAIR_TRUCK
repair truck to original condition
Definition: InputEngine.h:250
RoR::EV_COMMON_CONSOLE_TOGGLE
@ EV_COMMON_CONSOLE_TOGGLE
show / hide the console
Definition: InputEngine.h:227
RoR::EV_COMMANDS_53
@ EV_COMMANDS_53
Command 53.
Definition: InputEngine.h:191
RoR::EV_TRUCK_TOGGLE_CONTACT
@ EV_TRUCK_TOGGLE_CONTACT
toggle ignition
Definition: InputEngine.h:360
RoR::EV_COMMON_TOGGLE_PHYSICS
@ EV_COMMON_TOGGLE_PHYSICS
toggle physics on/off
Definition: InputEngine.h:271
RoR::EV_TRUCK_RIGHT_MIRROR_RIGHT
@ EV_TRUCK_RIGHT_MIRROR_RIGHT
Definition: InputEngine.h:330
RoR::EV_TRUCK_LIGHTTOGGLE06
@ EV_TRUCK_LIGHTTOGGLE06
toggle custom light 6
Definition: InputEngine.h:321
RoR::EV_COMMON_TOGGLE_TRUCK_BEACONS
@ EV_COMMON_TOGGLE_TRUCK_BEACONS
toggle truck beacons
Definition: InputEngine.h:273
RoR::EV_TRUCK_RIGHT_MIRROR_LEFT
@ EV_TRUCK_RIGHT_MIRROR_LEFT
Definition: InputEngine.h:329
RoR::EV_TRUCK_BLINK_RIGHT
@ EV_TRUCK_BLINK_RIGHT
toggle right direction indicator (blinker)
Definition: InputEngine.h:304
RoR::EV_COMMANDS_26
@ EV_COMMANDS_26
Command 26.
Definition: InputEngine.h:164
Script2Game::KC_NUMPAD4
enum Script2Game::inputEvents KC_NUMPAD4
RoR::EV_COMMANDS_32
@ EV_COMMANDS_32
Command 32.
Definition: InputEngine.h:170
RoR::EV_COMMON_ENTER_OR_EXIT_TRUCK
@ EV_COMMON_ENTER_OR_EXIT_TRUCK
enter or exit a truck
Definition: InputEngine.h:229
RoR::EV_COMMANDS_54
@ EV_COMMANDS_54
Command 54.
Definition: InputEngine.h:192
RoR::EV_BOAT_STEER_LEFT_AXIS
@ EV_BOAT_STEER_LEFT_AXIS
steer left (analog value!)
Definition: InputEngine.h:104
Script2Game::KC_PGDOWN
enum Script2Game::inputEvents KC_PGDOWN
Script2Game::KC_MINUS
enum Script2Game::inputEvents KC_MINUS
RoR::EV_CAMERA_ROTATE_UP
@ EV_CAMERA_ROTATE_UP
rotate camera up
Definition: InputEngine.h:123
RoR::EV_COMMON_TOGGLE_RESET_MODE
@ EV_COMMON_TOGGLE_RESET_MODE
toggle truck reset truck mode (soft vs. hard)
Definition: InputEngine.h:258
RoR::EV_COMMANDS_61
@ EV_COMMANDS_61
Command 61.
Definition: InputEngine.h:199
Script2Game::KC_DELETE
enum Script2Game::inputEvents KC_DELETE
RoR::EV_COMMON_TOGGLE_TRUCK_FOG_LIGHTS
@ EV_COMMON_TOGGLE_TRUCK_FOG_LIGHTS
toggle truck fog lights (on/off); doesn't need low beams, doesn't use 't' lights.
Definition: InputEngine.h:277
Script2Game::KC_NUMPAD9
enum Script2Game::inputEvents KC_NUMPAD9
Script2Game::KC_6
enum Script2Game::inputEvents KC_6
Script2Game::KC_PGUP
enum Script2Game::inputEvents KC_PGUP
Script2Game::KC_GRAVE
enum Script2Game::inputEvents KC_GRAVE
RoR::EV_COMMANDS_03
@ EV_COMMANDS_03
Command 3.
Definition: InputEngine.h:141
Script2Game::KC_F10
enum Script2Game::inputEvents KC_F10
RoR::EV_MENU_UP
@ EV_MENU_UP
select previous element in current category
Definition: InputEngine.h:290
RoR::EV_CAMERA_ZOOM_IN
@ EV_CAMERA_ZOOM_IN
zoom camera in
Definition: InputEngine.h:125
RoR::EV_CHARACTER_ROT_DOWN
@ EV_CHARACTER_ROT_DOWN
Definition: InputEngine.h:134
RoR::EV_COMMANDS_69
@ EV_COMMANDS_69
Command 69.
Definition: InputEngine.h:207
RoR::EV_COMMON_AUTOLOCK
@ EV_COMMON_AUTOLOCK
unlock autolock hook node
Definition: InputEngine.h:226
RoR::EV_TRUCK_SHIFT_GEAR09
@ EV_TRUCK_SHIFT_GEAR09
shift directly into this gear
Definition: InputEngine.h:340
RoR::EV_TRUCK_BLINK_WARN
@ EV_TRUCK_BLINK_WARN
toggle all direction indicators
Definition: InputEngine.h:305
RoR::EV_TRUCK_SHIFT_GEAR04
@ EV_TRUCK_SHIFT_GEAR04
shift directly into this gear
Definition: InputEngine.h:335
RoR::EV_AIRPLANE_AIRBRAKES_NONE
@ EV_AIRPLANE_AIRBRAKES_NONE
Definition: InputEngine.h:80
RoR::EV_COMMANDS_45
@ EV_COMMANDS_45
Command 45.
Definition: InputEngine.h:183
registerEventTypeEnum
void registerEventTypeEnum(asIScriptEngine *engine)
Definition: InputEngineAngelscript.cpp:63
RoR::EV_TRUCK_SHIFT_GEAR01
@ EV_TRUCK_SHIFT_GEAR01
shift directly into this gear
Definition: InputEngine.h:332
RoR::EV_TRUCK_LIGHTTOGGLE04
@ EV_TRUCK_LIGHTTOGGLE04
toggle custom light 4
Definition: InputEngine.h:319
Script2Game::KC_F8
enum Script2Game::inputEvents KC_F8
RoR::EV_COMMON_ENTER_PREVIOUS_TRUCK
@ EV_COMMON_ENTER_PREVIOUS_TRUCK
enter previous truck
Definition: InputEngine.h:231
RoR::EV_TRUCK_CRUISE_CONTROL_READJUST
@ EV_TRUCK_CRUISE_CONTROL_READJUST
match target speed / rpm with current truck speed / rpm
Definition: InputEngine.h:312
Script2Game::KC_RETURN
enum Script2Game::inputEvents KC_RETURN
RoR::EV_COMMON_QUICKLOAD_01
@ EV_COMMON_QUICKLOAD_01
Definition: InputEngine.h:383
Script2Game::KC_EQUALS
enum Script2Game::inputEvents KC_EQUALS
RoR::EV_COMMANDS_02
@ EV_COMMANDS_02
Command 2.
Definition: InputEngine.h:140
RoR::EV_CHARACTER_BACKWARDS
@ EV_CHARACTER_BACKWARDS
step backwards with the character
Definition: InputEngine.h:129
RoR::EV_TRUCK_CRUISE_CONTROL
@ EV_TRUCK_CRUISE_CONTROL
toggle cruise control
Definition: InputEngine.h:309
RoR::EV_TRUCK_SHIFT_GEAR12
@ EV_TRUCK_SHIFT_GEAR12
shift directly into this gear
Definition: InputEngine.h:343
RoR::EV_COMMANDS_17
@ EV_COMMANDS_17
Command 17.
Definition: InputEngine.h:155
RoR::EV_COMMON_HIDE_GUI
@ EV_COMMON_HIDE_GUI
hide all GUI elements
Definition: InputEngine.h:238
RoR::EV_COMMANDS_09
@ EV_COMMANDS_09
Command 9.
Definition: InputEngine.h:147
Script2Game::KC_RIGHT
enum Script2Game::inputEvents KC_RIGHT
RoR::EV_COMMON_QUICKSAVE_07
@ EV_COMMON_QUICKSAVE_07
Definition: InputEngine.h:378
RoR::EV_COMMANDS_79
@ EV_COMMANDS_79
Command 79.
Definition: InputEngine.h:217
RoR::EV_SURVEY_MAP_ZOOM_IN
@ EV_SURVEY_MAP_ZOOM_IN
increase survey map scale
Definition: InputEngine.h:294
RoR::EV_COMMON_GET_NEW_VEHICLE
@ EV_COMMON_GET_NEW_VEHICLE
get new vehicle
Definition: InputEngine.h:244
RoR::EV_COMMANDS_50
@ EV_COMMANDS_50
Command 50.
Definition: InputEngine.h:188
RoR::EV_TRUCK_TOGGLE_FORWARDCOMMANDS
@ EV_TRUCK_TOGGLE_FORWARDCOMMANDS
toggle forwardcommands
Definition: InputEngine.h:361
RoR::EV_TRUCK_TRACTION_CONTROL
@ EV_TRUCK_TRACTION_CONTROL
toggle antilockbrake system
Definition: InputEngine.h:369
RoR::EV_COMMANDS_18
@ EV_COMMANDS_18
Command 18.
Definition: InputEngine.h:156
Script2Game::KC_ESCAPE
enum Script2Game::inputEvents KC_ESCAPE
RoR::EV_BOAT_THROTTLE_DOWN
@ EV_BOAT_THROTTLE_DOWN
decrease throttle
Definition: InputEngine.h:108
RoR::EV_TRUCK_SHIFT_GEAR06
@ EV_TRUCK_SHIFT_GEAR06
shift directly into this gear
Definition: InputEngine.h:337
RoR::EV_TRUCK_SHIFT_DOWN
@ EV_TRUCK_SHIFT_DOWN
shift one gear down in manual transmission mode
Definition: InputEngine.h:331
RoR::EV_COMMANDS_41
@ EV_COMMANDS_41
Command 41.
Definition: InputEngine.h:179
RoR::EV_TRUCK_BRAKE_MODIFIER_25
@ EV_TRUCK_BRAKE_MODIFIER_25
brake with 25 percent pedal input
Definition: InputEngine.h:307
RoR::EV_MENU_RIGHT
@ EV_MENU_RIGHT
select next category
Definition: InputEngine.h:288
RoR::EV_GRASS_MOST
@ EV_GRASS_MOST
EXPERIMENTAL: set maximum amount of grass.
Definition: InputEngine.h:283
RoR::EV_TRUCK_LIGHTTOGGLE05
@ EV_TRUCK_LIGHTTOGGLE05
toggle custom light 5
Definition: InputEngine.h:320
RoR::EV_COMMON_ENTER_NEXT_TRUCK
@ EV_COMMON_ENTER_NEXT_TRUCK
enter next truck
Definition: InputEngine.h:230
RoR::EV_ROAD_EDITOR_REBUILD_MESH
@ EV_ROAD_EDITOR_REBUILD_MESH
Definition: InputEngine.h:400
RoR::EV_COMMON_FOV_LESS
@ EV_COMMON_FOV_LESS
decreases the current FOV value
Definition: InputEngine.h:234
RoR::EV_MENU_DOWN
@ EV_MENU_DOWN
select next element in current category
Definition: InputEngine.h:286
RoR::EV_COMMON_PRESSURE_MORE
@ EV_COMMON_PRESSURE_MORE
increase tire pressure (note: only very few trucks support this)
Definition: InputEngine.h:246
RoR::EV_TRUCK_SHIFT_GEAR13
@ EV_TRUCK_SHIFT_GEAR13
shift directly into this gear
Definition: InputEngine.h:344
RoR::EV_COMMON_SCREENSHOT_BIG
@ EV_COMMON_SCREENSHOT_BIG
take a BIG screenshot
Definition: InputEngine.h:262
RoR::EV_COMMON_QUICKSAVE_06
@ EV_COMMON_QUICKSAVE_06
Definition: InputEngine.h:377
RoR::EV_TRUCK_ACCELERATE_MODIFIER_50
@ EV_TRUCK_ACCELERATE_MODIFIER_50
accelerate with 50 percent pedal input
Definition: InputEngine.h:299
RoR::EV_MENU_LEFT
@ EV_MENU_LEFT
select previous category
Definition: InputEngine.h:287
RoR::EV_COMMON_FULLSCREEN_TOGGLE
@ EV_COMMON_FULLSCREEN_TOGGLE
Definition: InputEngine.h:237
RoR::EV_AIRPLANE_RUDDER_LEFT
@ EV_AIRPLANE_RUDDER_LEFT
rudder left
Definition: InputEngine.h:90
Script2Game::KC_SLASH
enum Script2Game::inputEvents KC_SLASH
RoR::EV_COMMON_QUICKLOAD_09
@ EV_COMMON_QUICKLOAD_09
Definition: InputEngine.h:391
RoR::EV_COMMANDS_48
@ EV_COMMANDS_48
Command 48.
Definition: InputEngine.h:186
RoR::EV_CHARACTER_ROT_UP
@ EV_CHARACTER_ROT_UP
Definition: InputEngine.h:135
RoR::EV_TRUCK_SHIFT_GEAR10
@ EV_TRUCK_SHIFT_GEAR10
shift directly into this gear
Definition: InputEngine.h:341
RoR::EV_CHARACTER_RIGHT
@ EV_CHARACTER_RIGHT
rotate character right
Definition: InputEngine.h:133
RoR::EV_TRUCK_ACCELERATE_MODIFIER_25
@ EV_TRUCK_ACCELERATE_MODIFIER_25
accelerate with 25 percent pedal input
Definition: InputEngine.h:298
RoR::EV_COMMANDS_67
@ EV_COMMANDS_67
Command 67.
Definition: InputEngine.h:205
RoR::EV_COMMON_SAVE_TERRAIN
@ EV_COMMON_SAVE_TERRAIN
save terrain mesh to file
Definition: InputEngine.h:260
RoR::EV_TRUCK_SHIFT_GEAR17
@ EV_TRUCK_SHIFT_GEAR17
shift directly into this gear
Definition: InputEngine.h:348
RoR::EV_AIRPLANE_REVERSE
@ EV_AIRPLANE_REVERSE
reverse the turboprops
Definition: InputEngine.h:89
RoR::EV_COMMANDS_39
@ EV_COMMANDS_39
Command 39.
Definition: InputEngine.h:177
RoR::EV_COMMANDS_14
@ EV_COMMANDS_14
Command 14.
Definition: InputEngine.h:152
RoR::EV_COMMANDS_59
@ EV_COMMANDS_59
Command 59.
Definition: InputEngine.h:197
RoR::EV_TRUCK_LIGHTTOGGLE10
@ EV_TRUCK_LIGHTTOGGLE10
toggle custom light 10
Definition: InputEngine.h:325
RoR::EV_TRUCK_SHIFT_GEAR08
@ EV_TRUCK_SHIFT_GEAR08
shift directly into this gear
Definition: InputEngine.h:339
RoR::EV_TRUCK_SHIFT_GEAR15
@ EV_TRUCK_SHIFT_GEAR15
shift directly into this gear
Definition: InputEngine.h:346
RoR::EV_AIRPLANE_FLAPS_MORE
@ EV_AIRPLANE_FLAPS_MORE
one step more flaps.
Definition: InputEngine.h:86
RoR::EV_COMMON_QUICKSAVE
@ EV_COMMON_QUICKSAVE
quicksave scene to the disk
Definition: InputEngine.h:248
RoR::EV_TRUCK_SHIFT_GEAR14
@ EV_TRUCK_SHIFT_GEAR14
shift directly into this gear
Definition: InputEngine.h:345
RoR::EV_COMMON_ACCELERATE_SIMULATION
@ EV_COMMON_ACCELERATE_SIMULATION
accelerate the simulation speed
Definition: InputEngine.h:223
RoR::EV_TRUCK_STEER_LEFT
@ EV_TRUCK_STEER_LEFT
steer left
Definition: InputEngine.h:357
RoR::EV_COMMON_QUICKSAVE_09
@ EV_COMMON_QUICKSAVE_09
Definition: InputEngine.h:380
RoR::EV_COMMON_PRESSURE_LESS
@ EV_COMMON_PRESSURE_LESS
decrease tire pressure (note: only very few trucks support this)
Definition: InputEngine.h:245
Script2Game::KC_LSHIFT
enum Script2Game::inputEvents KC_LSHIFT
RoR::EV_CAMERA_ZOOM_OUT
@ EV_CAMERA_ZOOM_OUT
zoom camera out
Definition: InputEngine.h:127
Script2Game::KC_F4
enum Script2Game::inputEvents KC_F4
RoR::EV_COMMANDS_38
@ EV_COMMANDS_38
Command 38.
Definition: InputEngine.h:176
Script2Game::KC_NUMPAD0
enum Script2Game::inputEvents KC_NUMPAD0
RoR::EV_BOAT_THROTTLE_UP
@ EV_BOAT_THROTTLE_UP
increase throttle
Definition: InputEngine.h:109
RoR::EV_CAMERA_FREE_MODE
@ EV_CAMERA_FREE_MODE
Definition: InputEngine.h:116
RoR::EV_CAMERA_ZOOM_IN_FAST
@ EV_CAMERA_ZOOM_IN_FAST
zoom camera in faster
Definition: InputEngine.h:126
RoR::EV_COMMANDS_31
@ EV_COMMANDS_31
Command 31.
Definition: InputEngine.h:169
RoR::EV_TRUCK_TRAILER_PARKING_BRAKE
@ EV_TRUCK_TRAILER_PARKING_BRAKE
toggle trailer parking brake
Definition: InputEngine.h:328
Script2Game::KC_9
enum Script2Game::inputEvents KC_9
RoR::EV_TRUCK_SHIFT_GEAR18
@ EV_TRUCK_SHIFT_GEAR18
shift directly into this gear
Definition: InputEngine.h:349
RoR::EV_COMMANDS_15
@ EV_COMMANDS_15
Command 15.
Definition: InputEngine.h:153
RoR::EV_AIRPLANE_AIRBRAKES_LESS
@ EV_AIRPLANE_AIRBRAKES_LESS
Definition: InputEngine.h:78
Script2Game::KC_F11
enum Script2Game::inputEvents KC_F11
RoR::EV_COMMANDS_24
@ EV_COMMANDS_24
Command 24.
Definition: InputEngine.h:162
Script2Game::KC_F7
enum Script2Game::inputEvents KC_F7
RoR::EV_BOAT_REVERSE
@ EV_BOAT_REVERSE
no thrust
Definition: InputEngine.h:102
RoR::EV_COMMON_QUICKLOAD_06
@ EV_COMMON_QUICKLOAD_06
Definition: InputEngine.h:388
RoR::EV_COMMANDS_74
@ EV_COMMANDS_74
Command 74.
Definition: InputEngine.h:212
RoR::EV_COMMANDS_64
@ EV_COMMANDS_64
Command 64.
Definition: InputEngine.h:202
RoR::EV_COMMANDS_23
@ EV_COMMANDS_23
Command 23.
Definition: InputEngine.h:161
Script2Game::KC_SEMICOLON
enum Script2Game::inputEvents KC_SEMICOLON
RoR::EV_CAMERA_ROTATE_LEFT
@ EV_CAMERA_ROTATE_LEFT
rotate camera left
Definition: InputEngine.h:121
RoR::EV_TRUCK_STARTER
@ EV_TRUCK_STARTER
hold to start the engine
Definition: InputEngine.h:356
RoR::EV_COMMANDS_51
@ EV_COMMANDS_51
Command 51.
Definition: InputEngine.h:189
RoR::EV_TRUCK_LIGHTTOGGLE01
@ EV_TRUCK_LIGHTTOGGLE01
toggle custom light 1
Definition: InputEngine.h:316
Script2Game::KC_NUMPAD6
enum Script2Game::inputEvents KC_NUMPAD6
RoR::EV_ROAD_EDITOR_POINT_SET_POS
@ EV_ROAD_EDITOR_POINT_SET_POS
Definition: InputEngine.h:397
RoR::EV_TRUCK_LEFT_MIRROR_LEFT
@ EV_TRUCK_LEFT_MIRROR_LEFT
Definition: InputEngine.h:314
Script2Game::KC_NUMPAD5
enum Script2Game::inputEvents KC_NUMPAD5
Script2Game::KC_TAB
enum Script2Game::inputEvents KC_TAB
RoR::EV_COMMON_RESPAWN_LAST_TRUCK
@ EV_COMMON_RESPAWN_LAST_TRUCK
respawn last truck
Definition: InputEngine.h:233
Script2Game::KC_PERIOD
enum Script2Game::inputEvents KC_PERIOD
RoR::EV_COMMANDS_82
@ EV_COMMANDS_82
Command 82.
Definition: InputEngine.h:220
RoR::EV_COMMON_QUICKLOAD_02
@ EV_COMMON_QUICKLOAD_02
Definition: InputEngine.h:384
Script2Game::KC_F6
enum Script2Game::inputEvents KC_F6
RoR::EV_CHARACTER_SIDESTEP_RIGHT
@ EV_CHARACTER_SIDESTEP_RIGHT
sidestep to the right
Definition: InputEngine.h:138
RoR::EV_COMMON_NETCHATDISPLAY
@ EV_COMMON_NETCHATDISPLAY
Definition: InputEngine.h:241
RoR::EV_COMMON_QUICKLOAD_07
@ EV_COMMON_QUICKLOAD_07
Definition: InputEngine.h:389
RoR::EV_COMMON_REPLAY_BACKWARD
@ EV_COMMON_REPLAY_BACKWARD
Definition: InputEngine.h:252
ScriptEngine.h
RoR::EV_ROAD_EDITOR_POINT_GOTO
@ EV_ROAD_EDITOR_POINT_GOTO
Definition: InputEngine.h:398
RoR::EV_COMMON_QUICKLOAD_05
@ EV_COMMON_QUICKLOAD_05
Definition: InputEngine.h:387
Script2Game::KC_END
enum Script2Game::inputEvents KC_END
RoR::EV_CAMERA_ROTATE_DOWN
@ EV_CAMERA_ROTATE_DOWN
rotate camera down
Definition: InputEngine.h:120
RoR::EV_AIRPLANE_TOGGLE_ENGINES
@ EV_AIRPLANE_TOGGLE_ENGINES
switch all engines on / off
Definition: InputEngine.h:100
RoR::EV_COMMON_TOGGLE_DASHBOARD
@ EV_COMMON_TOGGLE_DASHBOARD
display or hide the dashboard overlay
Definition: InputEngine.h:239
Script2Game::KC_F1
enum Script2Game::inputEvents KC_F1
RoR::EV_COMMON_QUICKSAVE_02
@ EV_COMMON_QUICKSAVE_02
Definition: InputEngine.h:373
RoR::EV_SKY_INCREASE_TIME
@ EV_SKY_INCREASE_TIME
increase day-time
Definition: InputEngine.h:112
RoR::EV_COMMANDS_21
@ EV_COMMANDS_21
Command 21.
Definition: InputEngine.h:159
RoR::EV_COMMANDS_30
@ EV_COMMANDS_30
Command 30.
Definition: InputEngine.h:168
RoR::EV_TRUCK_LIGHTTOGGLE02
@ EV_TRUCK_LIGHTTOGGLE02
toggle custom light 2
Definition: InputEngine.h:317
RoR::EV_BOAT_STEER_LEFT
@ EV_BOAT_STEER_LEFT
steer left a step
Definition: InputEngine.h:103
RoR::EV_TRUCK_TOGGLE_TCASE_4WD_MODE
@ EV_TRUCK_TOGGLE_TCASE_4WD_MODE
toggle the transfer case 4wd mode
Definition: InputEngine.h:366
RoR::EV_COMMON_QUICKLOAD
@ EV_COMMON_QUICKLOAD
quickload scene from the disk
Definition: InputEngine.h:247
registerInputEngineObject
void registerInputEngineObject(asIScriptEngine *engine)
Definition: InputEngineAngelscript.cpp:35
RoR::EV_TRUCK_TOGGLE_VIDEOCAMERA
@ EV_TRUCK_TOGGLE_VIDEOCAMERA
toggle videocamera update
Definition: InputEngine.h:368
RoR::EV_COMMANDS_07
@ EV_COMMANDS_07
Command 7.
Definition: InputEngine.h:145
RoR::EV_COMMANDS_56
@ EV_COMMANDS_56
Command 56.
Definition: InputEngine.h:194
Script2Game::KC_SPACE
enum Script2Game::inputEvents KC_SPACE
RoR::EV_COMMON_REPLAY_FAST_FORWARD
@ EV_COMMON_REPLAY_FAST_FORWARD
Definition: InputEngine.h:254
RoR::EV_COMMON_SEND_CHAT
@ EV_COMMON_SEND_CHAT
send the chat text
Definition: InputEngine.h:264
Script2Game::KC_DOWN
enum Script2Game::inputEvents KC_DOWN
Script2Game::KC_8
enum Script2Game::inputEvents KC_8
Script2Game::KC_ADD
enum Script2Game::inputEvents KC_ADD
RoR::EV_COMMANDS_75
@ EV_COMMANDS_75
Command 75.
Definition: InputEngine.h:213
RoR::EV_COMMANDS_68
@ EV_COMMANDS_68
Command 68.
Definition: InputEngine.h:206
RoR::EV_CHARACTER_RUN
@ EV_CHARACTER_RUN
let the character run
Definition: InputEngine.h:136
RoR::EV_MENU_SELECT
@ EV_MENU_SELECT
select focussed item and close menu
Definition: InputEngine.h:289
Script2Game::KC_F12
enum Script2Game::inputEvents KC_F12
RoR::EV_COMMON_LOCK
@ EV_COMMON_LOCK
connect hook node to a node in close proximity
Definition: InputEngine.h:240
RoR::EV_COMMANDS_57
@ EV_COMMANDS_57
Command 57.
Definition: InputEngine.h:195
RoR::EV_COMMON_TRUCK_REMOVE
@ EV_COMMON_TRUCK_REMOVE
Definition: InputEngine.h:280
RoR::EV_COMMON_QUICKSAVE_08
@ EV_COMMON_QUICKSAVE_08
Definition: InputEngine.h:379
RoR::EV_TRUCK_TOGGLE_INTER_WHEEL_DIFF
@ EV_TRUCK_TOGGLE_INTER_WHEEL_DIFF
toggle the inter wheel differential mode
Definition: InputEngine.h:364
Script2Game::KC_F2
enum Script2Game::inputEvents KC_F2
RoR::EV_COMMANDS_46
@ EV_COMMANDS_46
Command 46.
Definition: InputEngine.h:184
Script2Game::KC_RBRACKET
enum Script2Game::inputEvents KC_RBRACKET
RoR::EV_BOAT_CENTER_RUDDER
@ EV_BOAT_CENTER_RUDDER
center the rudder
Definition: InputEngine.h:101
RoR::EV_COMMANDS_76
@ EV_COMMANDS_76
Command 76.
Definition: InputEngine.h:214
RoR::EV_COMMON_TOGGLE_MAT_DEBUG
@ EV_COMMON_TOGGLE_MAT_DEBUG
debug purpose - dont use (currently not used)
Definition: InputEngine.h:269
Script2Game::KC_5
enum Script2Game::inputEvents KC_5
RoR::EV_AIRPLANE_AIRBRAKES_MORE
@ EV_AIRPLANE_AIRBRAKES_MORE
Definition: InputEngine.h:79
RoR::EV_TRUCK_SHIFT_HIGHRANGE
@ EV_TRUCK_SHIFT_HIGHRANGE
select high range (13-18) for H-shaft
Definition: InputEngine.h:351
RoR::EV_AIRPLANE_FLAPS_FULL
@ EV_AIRPLANE_FLAPS_FULL
full flaps in an aircraft.
Definition: InputEngine.h:84
RoR::EV_CHARACTER_FORWARD
@ EV_CHARACTER_FORWARD
step forward with the character
Definition: InputEngine.h:130
RoR::EV_TRUCK_HORN
@ EV_TRUCK_HORN
truck horn
Definition: InputEngine.h:313
RoR::EV_SURVEY_MAP_ZOOM_OUT
@ EV_SURVEY_MAP_ZOOM_OUT
decrease survey map scale
Definition: InputEngine.h:295
RoR::EV_COMMON_FOV_MORE
@ EV_COMMON_FOV_MORE
increases the current FOV value
Definition: InputEngine.h:235
Script2Game::KC_3
enum Script2Game::inputEvents KC_3
RoR::EV_GRASS_LESS
@ EV_GRASS_LESS
EXPERIMENTAL: remove some grass.
Definition: InputEngine.h:281
RoR::EV_CAMERA_LOOKBACK
@ EV_CAMERA_LOOKBACK
look back (toggles between normal and lookback)
Definition: InputEngine.h:118
RoR::EV_CAMERA_FREE_MODE_FIX
@ EV_CAMERA_FREE_MODE_FIX
Definition: InputEngine.h:117
RoR::EV_COMMANDS_55
@ EV_COMMANDS_55
Command 55.
Definition: InputEngine.h:193
RoR::EV_BOAT_THROTTLE_AXIS
@ EV_BOAT_THROTTLE_AXIS
throttle axis. Only use this if you have fitting hardware :) (i.e. a Slider)
Definition: InputEngine.h:107
RoR::EV_COMMON_SECURE_LOAD
@ EV_COMMON_SECURE_LOAD
tie a load to the truck
Definition: InputEngine.h:263
RoR::EV_COMMANDS_84
@ EV_COMMANDS_84
Command 84.
Definition: InputEngine.h:222
RoR::EV_COMMON_TOGGLE_REPLAY_MODE
@ EV_COMMON_TOGGLE_REPLAY_MODE
toggle replay mode
Definition: InputEngine.h:270
RoR::EV_COMMON_TOGGLE_TERRAIN_EDITOR
@ EV_COMMON_TOGGLE_TERRAIN_EDITOR
toggle terrain editor
Definition: InputEngine.h:267
Script2Game::KC_F9
enum Script2Game::inputEvents KC_F9
RoR::EV_COMMON_TOGGLE_TRUCK_LOW_BEAMS
@ EV_COMMON_TOGGLE_TRUCK_LOW_BEAMS
toggle truck low beams (on/off); also toggles running lights.
Definition: InputEngine.h:275
Script2Game::KC_NUMLOCK
enum Script2Game::inputEvents KC_NUMLOCK
Script2Game::KC_APOSTROPHE
enum Script2Game::inputEvents KC_APOSTROPHE
RoR::EV_COMMON_REPLAY_FAST_BACKWARD
@ EV_COMMON_REPLAY_FAST_BACKWARD
Definition: InputEngine.h:253
RoR::EV_TRUCK_SHIFT_GEAR02
@ EV_TRUCK_SHIFT_GEAR02
shift directly into this gear
Definition: InputEngine.h:333
RoR::EV_COMMANDS_19
@ EV_COMMANDS_19
Command 19.
Definition: InputEngine.h:157
Script2Game::KC_BACKSLASH
enum Script2Game::inputEvents KC_BACKSLASH
RoR::EV_SURVEY_MAP_TOGGLE_ICONS
@ EV_SURVEY_MAP_TOGGLE_ICONS
toggle map icons
Definition: InputEngine.h:291
Script2Game::KC_LWIN
enum Script2Game::inputEvents KC_LWIN
RoR::EV_TRUCK_SWITCH_SHIFT_MODES
@ EV_TRUCK_SWITCH_SHIFT_MODES
toggle between transmission modes
Definition: InputEngine.h:359
RoR::EV_TRUCK_LIGHTTOGGLE08
@ EV_TRUCK_LIGHTTOGGLE08
toggle custom light 8
Definition: InputEngine.h:323
RoR::EV_COMMON_QUICKSAVE_04
@ EV_COMMON_QUICKSAVE_04
Definition: InputEngine.h:375
RoR::EV_COMMANDS_47
@ EV_COMMANDS_47
Command 47.
Definition: InputEngine.h:185
RoR::EV_COMMANDS_77
@ EV_COMMANDS_77
Command 77.
Definition: InputEngine.h:215
RoR::EV_COMMANDS_35
@ EV_COMMANDS_35
Command 35.
Definition: InputEngine.h:173
RoR::EV_COMMANDS_01
@ EV_COMMANDS_01
Command 1.
Definition: InputEngine.h:139
Script2Game::KC_NUMPAD8
enum Script2Game::inputEvents KC_NUMPAD8
RoR::EV_TRUCK_LIGHTTOGGLE03
@ EV_TRUCK_LIGHTTOGGLE03
toggle custom light 3
Definition: InputEngine.h:318
RoR::EV_COMMANDS_63
@ EV_COMMANDS_63
Command 63.
Definition: InputEngine.h:201
Script2Game::KC_RWIN
enum Script2Game::inputEvents KC_RWIN
RoR::EV_TRUCK_TOGGLE_TCASE_GEAR_RATIO
@ EV_TRUCK_TOGGLE_TCASE_GEAR_RATIO
toggle the transfer case gear ratio
Definition: InputEngine.h:367
RoR::EV_COMMANDS_71
@ EV_COMMANDS_71
Command 71.
Definition: InputEngine.h:209
RoR::EV_CAMERA_RESET
@ EV_CAMERA_RESET
reset the camera position
Definition: InputEngine.h:119
RoR::EV_TRUCK_ACCELERATE
@ EV_TRUCK_ACCELERATE
accelerate the truck
Definition: InputEngine.h:297
RoR::EV_TRUCK_MANUAL_CLUTCH
@ EV_TRUCK_MANUAL_CLUTCH
manual clutch (for manual transmission)
Definition: InputEngine.h:326
Script2Game::KC_RSHIFT
enum Script2Game::inputEvents KC_RSHIFT
RoR::EV_COMMANDS_22
@ EV_COMMANDS_22
Command 22.
Definition: InputEngine.h:160
RoR::EV_AIRPLANE_FLAPS_NONE
@ EV_AIRPLANE_FLAPS_NONE
no flaps.
Definition: InputEngine.h:87
RoR::EV_COMMANDS_81
@ EV_COMMANDS_81
Command 81.
Definition: InputEngine.h:219
RoR::EV_TRUCK_LIGHTTOGGLE09
@ EV_TRUCK_LIGHTTOGGLE09
toggle custom light 9
Definition: InputEngine.h:324
RoR::EV_COMMON_NETCHATMODE
@ EV_COMMON_NETCHATMODE
Definition: InputEngine.h:242
RoR::EV_TRUCK_SHIFT_GEAR03
@ EV_TRUCK_SHIFT_GEAR03
shift directly into this gear
Definition: InputEngine.h:334
RoR::EV_CAMERA_CHANGE
@ EV_CAMERA_CHANGE
change camera mode
Definition: InputEngine.h:114
RoR::EV_SKY_DECREASE_TIME
@ EV_SKY_DECREASE_TIME
decrease day-time
Definition: InputEngine.h:110
RoR::EV_AIRPLANE_STEER_RIGHT
@ EV_AIRPLANE_STEER_RIGHT
steer right
Definition: InputEngine.h:93
RoR::EV_AIRPLANE_FLAPS_LESS
@ EV_AIRPLANE_FLAPS_LESS
one step less flaps.
Definition: InputEngine.h:85
Script2Game::KC_F5
enum Script2Game::inputEvents KC_F5
Script2Game::KC_7
enum Script2Game::inputEvents KC_7
RoR::EV_COMMANDS_10
@ EV_COMMANDS_10
Command 10.
Definition: InputEngine.h:148
RoR::EV_GRASS_NONE
@ EV_GRASS_NONE
EXPERIMENTAL: remove grass completely.
Definition: InputEngine.h:284
RoR::EV_AIRPLANE_THROTTLE_FULL
@ EV_AIRPLANE_THROTTLE_FULL
full thrust
Definition: InputEngine.h:97
RoR::EV_TRUCK_STEER_RIGHT
@ EV_TRUCK_STEER_RIGHT
steer right
Definition: InputEngine.h:358
RoR::EV_COMMON_TOGGLE_TRUCK_HIGH_BEAMS
@ EV_COMMON_TOGGLE_TRUCK_HIGH_BEAMS
toggle truck high beams (on/off); doesn't need low beams, doesn't use 't' lights.
Definition: InputEngine.h:276
RoR::EV_COMMANDS_70
@ EV_COMMANDS_70
Command 70.
Definition: InputEngine.h:208
RoR::EV_COMMANDS_20
@ EV_COMMANDS_20
Command 20.
Definition: InputEngine.h:158
RoR::RegisterInputEngine
void RegisterInputEngine(AngelScript::asIScriptEngine *engine)
Registers RoR::InputEngine, defined in InputEngineAngelscript.cpp.
RoR::EV_COMMON_QUICKSAVE_10
@ EV_COMMON_QUICKSAVE_10
Definition: InputEngine.h:381
RoR::EV_TRUCK_TOGGLE_PHYSICS
@ EV_TRUCK_TOGGLE_PHYSICS
toggle physics simulation
Definition: InputEngine.h:365
RoR::EV_TRUCK_TOGGLE_INTER_AXLE_DIFF
@ EV_TRUCK_TOGGLE_INTER_AXLE_DIFF
toggle the inter axle differential mode
Definition: InputEngine.h:363
RoR::EV_AIRPLANE_THROTTLE_NO
@ EV_AIRPLANE_THROTTLE_NO
no thrust
Definition: InputEngine.h:98
RoR::EV_COMMANDS_12
@ EV_COMMANDS_12
Command 12.
Definition: InputEngine.h:150
RoR::EV_COMMON_TRUCK_DESCRIPTION
@ EV_COMMON_TRUCK_DESCRIPTION
toggle truck description
Definition: InputEngine.h:279
RoR::EV_COMMANDS_62
@ EV_COMMANDS_62
Command 62.
Definition: InputEngine.h:200
RoR::EV_COMMANDS_28
@ EV_COMMANDS_28
Command 28.
Definition: InputEngine.h:166
Script2Game::KC_UP
enum Script2Game::inputEvents KC_UP
RoR::EV_TRUCK_TOGGLE_IMPORTCOMMANDS
@ EV_TRUCK_TOGGLE_IMPORTCOMMANDS
toggle importcommands
Definition: InputEngine.h:362
RoR::EV_SKY_DECREASE_TIME_FAST
@ EV_SKY_DECREASE_TIME_FAST
decrease day-time a lot faster
Definition: InputEngine.h:111
RoR::EV_ROAD_EDITOR_POINT_DELETE
@ EV_ROAD_EDITOR_POINT_DELETE
Definition: InputEngine.h:399
RoR::EV_TRUCK_SHIFT_GEAR07
@ EV_TRUCK_SHIFT_GEAR07
shift directly into this gear
Definition: InputEngine.h:338
RoR::EV_TRUCK_SHIFT_GEAR16
@ EV_TRUCK_SHIFT_GEAR16
shift directly into this gear
Definition: InputEngine.h:347
RoR::EV_COMMON_ENTER_CHATMODE
@ EV_COMMON_ENTER_CHATMODE
enter the chat mode
Definition: InputEngine.h:228
RoR::EV_COMMANDS_52
@ EV_COMMANDS_52
Command 52.
Definition: InputEngine.h:190
RoR::EV_BOAT_STEER_RIGHT
@ EV_BOAT_STEER_RIGHT
steer right a step
Definition: InputEngine.h:105
RoR::EV_GRASS_SAVE
@ EV_GRASS_SAVE
EXPERIMENTAL: save changes to the grass density image.
Definition: InputEngine.h:285
RoR::EV_COMMANDS_33
@ EV_COMMANDS_33
Command 33.
Definition: InputEngine.h:171
RoR::EV_COMMANDS_13
@ EV_COMMANDS_13
Command 13.
Definition: InputEngine.h:151
RoR::EV_CHARACTER_SIDESTEP_LEFT
@ EV_CHARACTER_SIDESTEP_LEFT
sidestep to the left
Definition: InputEngine.h:137
RoR::EV_COMMON_TOGGLE_CUSTOM_PARTICLES
@ EV_COMMON_TOGGLE_CUSTOM_PARTICLES
toggle particle cannon
Definition: InputEngine.h:268
RoR::EV_AIRPLANE_AIRBRAKES_FULL
@ EV_AIRPLANE_AIRBRAKES_FULL
Definition: InputEngine.h:77
RoR::EV_COMMANDS_42
@ EV_COMMANDS_42
Command 42.
Definition: InputEngine.h:180
RoR::EV_TRUCK_BLINK_LEFT
@ EV_TRUCK_BLINK_LEFT
toggle left direction indicator (blinker)
Definition: InputEngine.h:303
RoR::EV_COMMANDS_49
@ EV_COMMANDS_49
Command 49.
Definition: InputEngine.h:187
RoR::EV_AIRPLANE_PARKING_BRAKE
@ EV_AIRPLANE_PARKING_BRAKE
airplane parking brake.
Definition: InputEngine.h:88
RoR::EV_TRUCK_LIGHTTOGGLE07
@ EV_TRUCK_LIGHTTOGGLE07
toggle custom light 7
Definition: InputEngine.h:322
RoR::EV_TRUCK_AUTOSHIFT_UP
@ EV_TRUCK_AUTOSHIFT_UP
shift automatic transmission one gear up
Definition: InputEngine.h:302
InputEngine.h
Handles controller inputs from player. Defines input events and binding mechanism,...
RoR::EV_AIRPLANE_ELEVATOR_UP
@ EV_AIRPLANE_ELEVATOR_UP
pull the elevator up in an aircraft.
Definition: InputEngine.h:83
RoR::EV_COMMON_OUTPUT_POSITION
@ EV_COMMON_OUTPUT_POSITION
write current position to log (you can open the logfile and reuse the position)
Definition: InputEngine.h:243
Script2Game::KC_MULTIPLY
enum Script2Game::inputEvents KC_MULTIPLY
RoR::EV_COMMANDS_43
@ EV_COMMANDS_43
Command 43.
Definition: InputEngine.h:181
RoR::EV_AIRPLANE_BRAKE
@ EV_AIRPLANE_BRAKE
normal brake for an aircraft.
Definition: InputEngine.h:81
RoR::EV_AIRPLANE_THROTTLE_UP
@ EV_AIRPLANE_THROTTLE_UP
increase the airplane thrust
Definition: InputEngine.h:99
Script2Game::KC_F3
enum Script2Game::inputEvents KC_F3
RoR::EV_COMMANDS_27
@ EV_COMMANDS_27
Command 27.
Definition: InputEngine.h:165
RoR::EV_COMMANDS_29
@ EV_COMMANDS_29
Command 29.
Definition: InputEngine.h:167
RoR::EV_ROAD_EDITOR_POINT_INSERT
@ EV_ROAD_EDITOR_POINT_INSERT
Definition: InputEngine.h:396
RoR::EV_TRUCK_AUTOSHIFT_DOWN
@ EV_TRUCK_AUTOSHIFT_DOWN
shift automatic transmission one gear down
Definition: InputEngine.h:301
Script2Game::KC_LEFT
enum Script2Game::inputEvents KC_LEFT
RoR::EV_COMMANDS_16
@ EV_COMMANDS_16
Command 16.
Definition: InputEngine.h:154
RoR::EV_COMMON_QUICKLOAD_04
@ EV_COMMON_QUICKLOAD_04
Definition: InputEngine.h:386
RoR::EV_COMMON_TRUCK_INFO
@ EV_COMMON_TRUCK_INFO
toggle truck HUD
Definition: InputEngine.h:278
RoR::EV_CAMERA_UP
@ EV_CAMERA_UP
Definition: InputEngine.h:124
RoR::EV_COMMON_QUIT_GAME
@ EV_COMMON_QUIT_GAME
exit the game
Definition: InputEngine.h:249
RoR::EV_TRUCKEDIT_RELOAD
@ EV_TRUCKEDIT_RELOAD
Definition: InputEngine.h:394
RoR::EV_TRUCK_CRUISE_CONTROL_DECL
@ EV_TRUCK_CRUISE_CONTROL_DECL
decrease target speed / rpm
Definition: InputEngine.h:311
RoR::EV_TRUCK_SHIFT_GEAR11
@ EV_TRUCK_SHIFT_GEAR11
shift directly into this gear
Definition: InputEngine.h:342
RoR::EV_AIRPLANE_STEER_LEFT
@ EV_AIRPLANE_STEER_LEFT
steer left
Definition: InputEngine.h:92
RoR::EV_COMMON_TOGGLE_STATS
@ EV_COMMON_TOGGLE_STATS
toggle Ogre statistics (FPS etc.)
Definition: InputEngine.h:272
RoR::EV_COMMON_RESET_SIMULATION_PACE
@ EV_COMMON_RESET_SIMULATION_PACE
reset the simulation speed
Definition: InputEngine.h:225
RoR::EV_COMMON_CYCLE_DEBUG_VIEWS
@ EV_COMMON_CYCLE_DEBUG_VIEWS
cycle debug view mode
Definition: InputEngine.h:266
RoR::EV_COMMANDS_11
@ EV_COMMANDS_11
Command 11.
Definition: InputEngine.h:149
RoR::EV_AIRPLANE_THROTTLE_AXIS
@ EV_AIRPLANE_THROTTLE_AXIS
throttle axis. Only use this if you have fitting hardware :) (i.e. a Slider)
Definition: InputEngine.h:95
RoR::EV_COMMON_DECELERATE_SIMULATION
@ EV_COMMON_DECELERATE_SIMULATION
decelerate the simulation speed
Definition: InputEngine.h:224
RoR::EV_COMMON_QUICKSAVE_03
@ EV_COMMON_QUICKSAVE_03
Definition: InputEngine.h:374
RoR::EV_CHARACTER_LEFT
@ EV_CHARACTER_LEFT
rotate character left
Definition: InputEngine.h:132
RoR::EV_COMMANDS_44
@ EV_COMMANDS_44
Command 44.
Definition: InputEngine.h:182
RoR::EV_TRUCK_CRUISE_CONTROL_ACCL
@ EV_TRUCK_CRUISE_CONTROL_ACCL
increase target speed / rpm
Definition: InputEngine.h:310
Script2Game::KC_NUMPAD3
enum Script2Game::inputEvents KC_NUMPAD3
Script2Game::KC_2
enum Script2Game::inputEvents KC_2
RoR::EV_AIRPLANE_ELEVATOR_DOWN
@ EV_AIRPLANE_ELEVATOR_DOWN
pull the elevator down in an aircraft.
Definition: InputEngine.h:82
RoR::EV_COMMANDS_34
@ EV_COMMANDS_34
Command 34.
Definition: InputEngine.h:172
RoR::EV_COMMANDS_73
@ EV_COMMANDS_73
Command 73.
Definition: InputEngine.h:211
RoR::EV_COMMON_FOV_RESET
@ EV_COMMON_FOV_RESET
reset the FOV value
Definition: InputEngine.h:236
RoR::EV_CAMERA_DOWN
@ EV_CAMERA_DOWN
Definition: InputEngine.h:115
RoR::EV_TRUCK_SHIFT_NEUTRAL
@ EV_TRUCK_SHIFT_NEUTRAL
shift to neutral gear in manual transmission mode
Definition: InputEngine.h:354
Script2Game::KC_NUMPAD2
enum Script2Game::inputEvents KC_NUMPAD2
RoR
Definition: AppContext.h:36
RoR::EV_COMMANDS_36
@ EV_COMMANDS_36
Command 36.
Definition: InputEngine.h:174
RoR::EV_COMMON_QUICKSAVE_05
@ EV_COMMON_QUICKSAVE_05
Definition: InputEngine.h:376
RoR::EV_CAMERA_ROTATE_RIGHT
@ EV_CAMERA_ROTATE_RIGHT
rotate camera right
Definition: InputEngine.h:122
RoR::EV_COMMON_REMOVE_CURRENT_TRUCK
@ EV_COMMON_REMOVE_CURRENT_TRUCK
remove current truck
Definition: InputEngine.h:232
RoR::EV_COMMANDS_25
@ EV_COMMANDS_25
Command 25.
Definition: InputEngine.h:163
Script2Game::KC_0
enum Script2Game::inputEvents KC_0
RoR::EV_BOAT_STEER_RIGHT_AXIS
@ EV_BOAT_STEER_RIGHT_AXIS
steer right (analog value!)
Definition: InputEngine.h:106
RoR::EV_SKY_INCREASE_TIME_FAST
@ EV_SKY_INCREASE_TIME_FAST
increase day-time a lot faster
Definition: InputEngine.h:113
RoR::EV_COMMON_RESCUE_TRUCK
@ EV_COMMON_RESCUE_TRUCK
teleport to rescue truck
Definition: InputEngine.h:256
OIS
Definition: ForceFeedback.h:25
RoR::EV_COMMANDS_78
@ EV_COMMANDS_78
Command 78.
Definition: InputEngine.h:216
RoR::EV_TRUCK_PARKING_BRAKE
@ EV_TRUCK_PARKING_BRAKE
toggle parking brake
Definition: InputEngine.h:327
RoR::EV_TRUCK_BRAKE
@ EV_TRUCK_BRAKE
brake
Definition: InputEngine.h:306
RoR::EV_COMMANDS_65
@ EV_COMMANDS_65
Command 65.
Definition: InputEngine.h:203
RoR::EV_COMMON_ROPELOCK
@ EV_COMMON_ROPELOCK
connect hook node to a node in close proximity
Definition: InputEngine.h:259
RoR::EV_COMMON_QUICKLOAD_08
@ EV_COMMON_QUICKLOAD_08
Definition: InputEngine.h:390
RoR::EV_COMMANDS_04
@ EV_COMMANDS_04
Command 4.
Definition: InputEngine.h:142
RoR::EV_TRUCK_SHIFT_GEAR05
@ EV_TRUCK_SHIFT_GEAR05
shift directly into this gear
Definition: InputEngine.h:336
RoR::EV_COMMON_TOGGLE_DEBUG_VIEW
@ EV_COMMON_TOGGLE_DEBUG_VIEW
toggle debug view mode
Definition: InputEngine.h:265
RoR::EV_TRUCK_ANTILOCK_BRAKE
@ EV_TRUCK_ANTILOCK_BRAKE
toggle antilockbrake system
Definition: InputEngine.h:300
RoR::EV_TRUCK_SHIFT_GEAR_REVERSE
@ EV_TRUCK_SHIFT_GEAR_REVERSE
shift directly into this gear
Definition: InputEngine.h:350
RoR::EV_CHARACTER_JUMP
@ EV_CHARACTER_JUMP
let the character jump
Definition: InputEngine.h:131
RoR::EV_TRUCK_SHIFT_LOWRANGE
@ EV_TRUCK_SHIFT_LOWRANGE
select low range (1-6) for H-shaft
Definition: InputEngine.h:352
RoR::EV_COMMON_QUICKLOAD_03
@ EV_COMMON_QUICKLOAD_03
Definition: InputEngine.h:385
RoR::EV_TRUCK_SHIFT_MIDRANGE
@ EV_TRUCK_SHIFT_MIDRANGE
select middle range (7-12) for H-shaft
Definition: InputEngine.h:353
RoR::EV_COMMANDS_05
@ EV_COMMANDS_05
Command 5.
Definition: InputEngine.h:143
Script2Game::KC_COMMA
enum Script2Game::inputEvents KC_COMMA
RoR::EV_TRUCK_LEFT_MIRROR_RIGHT
@ EV_TRUCK_LEFT_MIRROR_RIGHT
Definition: InputEngine.h:315
RoR::EV_COMMON_QUICKSAVE_01
@ EV_COMMON_QUICKSAVE_01
Definition: InputEngine.h:372
RoR::EV_COMMANDS_80
@ EV_COMMANDS_80
Command 80.
Definition: InputEngine.h:218