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

◆ OnKeyboardConnected()

void Input::OnKeyboardConnected ( )
inlineprivate

callback that is fired when keyboard is connected (PS: and assigned to the user) does not fire on PC - mouse/keyboard assumed to always be connected

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

411 {
412 if (!g_Game)
413 return;
414
416 if (!g_Game.IsLoading() && g_Game.GetMission())
417 {
418 DayZLoadState state = g_Game.GetLoadState();
419 if (state != DayZLoadState.MAIN_MENU_START && state != DayZLoadState.MAIN_MENU_USER_SELECT)
420 {
421 g_Game.GetMission().GetOnInputDeviceConnected().Invoke(EUAINPUT_DEVICE_KEYBOARD);
422 }
423 }
424 }
DayZGame g_Game
Определения DayZGame.c:3942
void UpdateConnectedInputDeviceList()
currently lists only available Gamepad, Mouse, and Keyboard. Extendable as needed.
Определения input.c:235

Перекрестные ссылки g_Game и UpdateConnectedInputDeviceList().