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

◆ OnMouseConnected()

void Input::OnMouseConnected ( )
inlineprivate

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

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

375 {
376 if (!g_Game)
377 return;
378
380 if (!g_Game.IsLoading() && g_Game.GetMission())
381 {
382 DayZLoadState state = g_Game.GetLoadState();
383 if (state != DayZLoadState.MAIN_MENU_START && state != DayZLoadState.MAIN_MENU_USER_SELECT)
384 {
385 g_Game.GetMission().GetOnInputDeviceConnected().Invoke(EUAINPUT_DEVICE_MOUSE);
386 }
387 }
388 }
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().