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

◆ OnGamepadDisconnected()

void Input::OnGamepadDisconnected ( int gamepad)
inlineprivate

callback that is fired when gamepad is disconnected

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

289 {
290 if (!g_Game)
291 return;
292
294 {
296
297 if (!g_Game.IsLoading())
298 {
299 DayZLoadState state = g_Game.GetLoadState();
300 if (state != DayZLoadState.MAIN_MENU_START && state != DayZLoadState.MAIN_MENU_USER_SELECT)
301 {
302 if (GetGame().GetMission())
303 GetGame().GetMission().GetOnInputDeviceDisconnected().Invoke(EUAINPUT_DEVICE_CONTROLLER);
304 }
305 }
306 }
307 }
DayZGame g_Game
Определения DayZGame.c:3868
proto native Mission GetMission()
bool IsInactiveGamepadOrUserSelected(int gamepad=-1)
Определения input.c:348
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(), IsInactiveGamepadOrUserSelected() и UpdateConnectedInputDeviceList().