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

◆ OnGamepadDisconnected()

void Input::OnGamepadDisconnected ( int gamepad)
inlineprivate

callback that is fired when gamepad is disconnected

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

281 {
282 if (!g_Game)
283 return;
284
286 {
288
289 if (!g_Game.IsLoading())
290 {
291 DayZLoadState state = g_Game.GetLoadState();
292 if (state != DayZLoadState.MAIN_MENU_START && state != DayZLoadState.MAIN_MENU_USER_SELECT)
293 {
294 if (GetGame().GetMission())
295 GetGame().GetMission().GetOnInputDeviceDisconnected().Invoke(EUAINPUT_DEVICE_CONTROLLER);
296 }
297 }
298 }
299 }
DayZGame g_Game
Определения DayZGame.c:3868
proto native Mission GetMission()
bool IsInactiveGamepadOrUserSelected(int gamepad=-1)
Определения input.c:340
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(), IsInactiveGamepadOrUserSelected() и UpdateConnectedInputDeviceList().