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

◆ LockControls()

void DayZPlayer::LockControls ( bool state)
inlineprotected

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

875 {
876 if (state == true)
877 {
878 g_Game.GetInput().ChangeGameFocus(1, INPUT_DEVICE_MOUSE);
879 g_Game.GetInput().ChangeGameFocus(1, INPUT_DEVICE_KEYBOARD);
880 g_Game.GetInput().ChangeGameFocus(1, INPUT_DEVICE_GAMEPAD);
881
882 if (g_Game.GetUIManager())
883 {
884 g_Game.GetUIManager().ShowUICursor(true);
885 if (g_Game.GetUIManager().IsDialogVisible())
886 g_Game.GetUIManager().CloseDialog();
887 }
888 }
889 else
890 {
891 g_Game.GetInput().ChangeGameFocus(-1, INPUT_DEVICE_MOUSE);
892 g_Game.GetInput().ChangeGameFocus(-1, INPUT_DEVICE_KEYBOARD);
893 g_Game.GetInput().ChangeGameFocus(-1, INPUT_DEVICE_GAMEPAD);
894
895 if (g_Game.GetUIManager())
896 {
897 if (g_Game.GetUIManager().GetMenu())
898 {
899 g_Game.GetUIManager().ShowUICursor(true);
900 }
901 else
902 {
903 g_Game.GetUIManager().ShowUICursor(false);
904 }
905 }
906 }
907 }
DayZGame g_Game
Определения DayZGame.c:3942
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().