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

◆ OnMouseDisconnected()

void Input::OnMouseDisconnected ( )
inlineprivate

callback that is fired when mouse is disconnected does not fire on PC - mouse/keyboard assumed to always be connected

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

381 {
382 if (!g_Game)
383 return;
384
386 if (!g_Game.IsLoading() && GetGame().GetMission())
387 {
388 DayZLoadState state = g_Game.GetLoadState();
389 if (state != DayZLoadState.MAIN_MENU_START && state != DayZLoadState.MAIN_MENU_USER_SELECT)
390 {
391 GetGame().GetMission().GetOnInputDeviceDisconnected().Invoke(EUAINPUT_DEVICE_MOUSE);
392 }
393 }
394 }
DayZGame g_Game
Определения DayZGame.c:3868
proto native Mission GetMission()
void UpdateConnectedInputDeviceList()
currently lists only available Gamepad, Mouse, and Keyboard. Extendable as needed.
Определения input.c:227
ScriptInvoker GetOnInputDeviceDisconnected()
Определения gameplay.c:875
proto void Invoke(void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
invoke call on all inserted methods with given arguments
proto native CGame GetGame()

Перекрестные ссылки g_Game, GetGame(), CGame::GetMission(), Mission::GetOnInputDeviceDisconnected(), ScriptInvoker::Invoke() и UpdateConnectedInputDeviceList().