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

◆ LockControls()

void DayZPlayer::LockControls ( bool state)
inlineprotected

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

884 {
885 if (state == true)
886 {
887 g_Game.GetInput().ChangeGameFocus(1, INPUT_DEVICE_MOUSE);
888 g_Game.GetInput().ChangeGameFocus(1, INPUT_DEVICE_KEYBOARD);
889 g_Game.GetInput().ChangeGameFocus(1, INPUT_DEVICE_GAMEPAD);
890
891 if (g_Game.GetUIManager())
892 {
893 g_Game.GetUIManager().ShowUICursor(true);
894 if (g_Game.GetUIManager().IsDialogVisible())
895 g_Game.GetUIManager().CloseDialog();
896 }
897 }
898 else
899 {
900 g_Game.GetInput().ChangeGameFocus(-1, INPUT_DEVICE_MOUSE);
901 g_Game.GetInput().ChangeGameFocus(-1, INPUT_DEVICE_KEYBOARD);
902 g_Game.GetInput().ChangeGameFocus(-1, INPUT_DEVICE_GAMEPAD);
903
904 if (g_Game.GetUIManager())
905 {
906 if (g_Game.GetUIManager().GetMenu())
907 {
908 g_Game.GetUIManager().ShowUICursor(true);
909 }
910 else
911 {
912 g_Game.GetUIManager().ShowUICursor(false);
913 }
914 }
915 }
916 }
DayZGame g_Game
Определения DayZGame.c:4074
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, INPUT_DEVICE_GAMEPAD, INPUT_DEVICE_KEYBOARD и INPUT_DEVICE_MOUSE.

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