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

◆ OnGamepadIdentification()

void Input::OnGamepadIdentification ( int gamepad)
inlineprivate

callback that is fired when identification was requested

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

303 {
304 if (!g_Game)
305 return;
306
307 if (gamepad > -1)
308 {
309 DayZLoadState state = g_Game.GetLoadState();
310
312 SelectActiveGamepad(gamepad);
313 g_Game.SelectUser(gamepad);
314 g_Game.SetPreviousGamepad(gamepad);
315 if (state == DayZLoadState.MAIN_MENU_START || state == DayZLoadState.MAIN_MENU_USER_SELECT)
316 {
317 if (GetGame().GetMission())
319 }
320
321 if (GetGame() && GetGame().GetMission() && GetGame().GetMission().GetOnInputDeviceConnected())
322 GetGame().GetMission().GetOnInputDeviceConnected().Invoke(EUAINPUT_DEVICE_CONTROLLER);
323 }
324 }
DayZGame g_Game
Определения DayZGame.c:3868
proto native Mission GetMission()
proto native void SelectActiveGamepad(int gamepad)
void UpdateConnectedInputDeviceList()
currently lists only available Gamepad, Mouse, and Keyboard. Extendable as needed.
Определения input.c:227
void Reset()
Определения gameplay.c:717
ScriptInvoker GetOnInputDeviceConnected()
Определения gameplay.c:867
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::GetOnInputDeviceConnected(), ScriptInvoker::Invoke(), Mission::Reset(), SelectActiveGamepad() и UpdateConnectedInputDeviceList().