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

◆ OnGamepadIdentification()

void Input::OnGamepadIdentification ( int gamepad)
inlineprivate

callback that is fired when identification was requested

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

311 {
312 if (!g_Game)
313 return;
314
315 if (gamepad > -1)
316 {
317 DayZLoadState state = g_Game.GetLoadState();
318
320 SelectActiveGamepad(gamepad);
321 g_Game.SelectUser(gamepad);
322 g_Game.SetPreviousGamepad(gamepad);
323 if (state == DayZLoadState.MAIN_MENU_START || state == DayZLoadState.MAIN_MENU_USER_SELECT)
324 {
325 if (GetGame().GetMission())
327 }
328
329 if (GetGame() && GetGame().GetMission() && GetGame().GetMission().GetOnInputDeviceConnected())
330 GetGame().GetMission().GetOnInputDeviceConnected().Invoke(EUAINPUT_DEVICE_CONTROLLER);
331 }
332 }
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:235
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().