DayZ 1.28
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 строка 388

389 {
390 if (!g_Game)
391 return;
392
394 if (!g_Game.IsLoading() && GetGame().GetMission())
395 {
396 DayZLoadState state = g_Game.GetLoadState();
397 if (state != DayZLoadState.MAIN_MENU_START && state != DayZLoadState.MAIN_MENU_USER_SELECT)
398 {
399 GetGame().GetMission().GetOnInputDeviceDisconnected().Invoke(EUAINPUT_DEVICE_MOUSE);
400 }
401 }
402 }
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:235
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().