We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
eOnKeyPress
1 parent 6bc82c5 commit 5d63477Copy full SHA for 5d63477
ogsr_engine/xrGame/Level_input.cpp
@@ -151,17 +151,17 @@ void CLevel::IR_OnKeyboardPress (int key)
151
if( g_bDisableAllInput ) return;
152
if ( !b_ui_exist ) return;
153
154
+ if ( Actor() ) {
155
+ Actor()->callback(GameObject::eOnKeyPress)(key, get_binded_action(key));
156
+ if ( g_bDisableAllInput ) return;
157
+ }
158
+
159
if ( b_ui_exist && pHUD->GetUI()->IR_OnKeyboardPress(key)) return;
160
161
if( Device.Paused() ) return;
162
163
if ( game && Game().IR_OnKeyboardPress(key) ) return;
164
- if ( Actor() ) {
- Actor()->callback(GameObject::eOnKeyPress)(key, get_binded_action(key));
- if ( g_bDisableAllInput ) return;
- }
-
165
if(_curr == kQUICK_SAVE)
166
{
167
Console->Execute ("save");
0 commit comments