DayZ 1.29
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ UnlockControls()

void UIMenuPanel::UnlockControls ( )
inlineprivate

См. определение в файле UIScriptedMenu.c строка 104

105 {
106#ifdef FEATURE_CURSOR
107 if (IsCreatedHidden())
108 return;
109#endif
110
111 if (UseMouse())
112 {
113 g_Game.GetInput().ChangeGameFocus(-1, INPUT_DEVICE_MOUSE);
114 }
115
117 {
118 g_Game.GetUIManager().ShowUICursor(true);
119 }
120 else
121 {
122 g_Game.GetUIManager().ShowUICursor(false);
123 }
124
125 if(UseKeyboard())
126 {
127 g_Game.GetInput().ChangeGameFocus(-1, INPUT_DEVICE_KEYBOARD);
128 }
129
130 if(UseGamepad())
131 {
132 g_Game.GetInput().ChangeGameFocus(-1, INPUT_DEVICE_GAMEPAD);
133 }
134 }
DayZGame g_Game
Определения DayZGame.c:3942
bool UseKeyboard()
Определения UIScriptedMenu.c:41
bool UseMouse()
Определения UIScriptedMenu.c:33
bool UseGamepad()
Определения UIScriptedMenu.c:49
proto native UIMenuPanel GetParentMenu()
const int INPUT_DEVICE_MOUSE
Определения 1_Core/DayZ/constants.c:24
const int INPUT_DEVICE_GAMEPAD
Определения 1_Core/DayZ/constants.c:28
const int INPUT_DEVICE_KEYBOARD
Определения 1_Core/DayZ/constants.c:23

Перекрестные ссылки g_Game, GetParentMenu(), INPUT_DEVICE_GAMEPAD, INPUT_DEVICE_KEYBOARD, INPUT_DEVICE_MOUSE, UIScriptedMenu::UseGamepad(), UIScriptedMenu::UseKeyboard() и UIScriptedMenu::UseMouse().

Используется в OnHide().