Skip to content

Commit 5d63477

Browse files
committed
Перенес калбек eOnKeyPress выше
1 parent 6bc82c5 commit 5d63477

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ogsr_engine/xrGame/Level_input.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,17 +151,17 @@ void CLevel::IR_OnKeyboardPress (int key)
151151
if( g_bDisableAllInput ) return;
152152
if ( !b_ui_exist ) return;
153153

154+
if ( Actor() ) {
155+
Actor()->callback(GameObject::eOnKeyPress)(key, get_binded_action(key));
156+
if ( g_bDisableAllInput ) return;
157+
}
158+
154159
if ( b_ui_exist && pHUD->GetUI()->IR_OnKeyboardPress(key)) return;
155160

156161
if( Device.Paused() ) return;
157162

158163
if ( game && Game().IR_OnKeyboardPress(key) ) return;
159164

160-
if ( Actor() ) {
161-
Actor()->callback(GameObject::eOnKeyPress)(key, get_binded_action(key));
162-
if ( g_bDisableAllInput ) return;
163-
}
164-
165165
if(_curr == kQUICK_SAVE)
166166
{
167167
Console->Execute ("save");

0 commit comments

Comments
 (0)