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

◆ GamepadCheck()

void CGame::GamepadCheck ( )
inlineprotected

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

2436 {
2437#ifdef PLATFORM_MSSTORE
2438 // MS Store build always has user selected at this point. So just proceed.
2439 // This imitates the behavior when a gamepad is already selected.
2441 SelectUser();
2442 return;
2443#endif
2444
2445#ifndef AUTOTEST
2446 if (GetInput().IsActiveGamepadSelected())
2447 {
2448#endif
2450 SelectUser();
2451#ifndef AUTOTEST
2452 }
2453 else
2454 {
2455 #ifdef PLATFORM_CONSOLE
2456 #ifndef PLATFORM_WINDOWS
2457 #ifdef PLATFORM_PS4
2458 if (GetUserManager().GetSelectedUser())
2459 {
2460 int gamepad = GetInput().GetUserGamepad(GetUserManager().GetSelectedUser());
2461 if (gamepad > -1)
2462 {
2463 SelectUser(gamepad);
2464 }
2465 else
2466 {
2467 if (!m_IntroMenu && !(g_Game.GetUIManager().GetMenu() && g_Game.GetUIManager().GetMenu().GetID() == MENU_TITLE_SCREEN))
2469 g_Game.GetInput().IdentifyGamepad(g_Game.GetInput().GetEnterButton());
2470 }
2471 }
2472 else
2473 #endif
2474 {
2475 if (!m_IntroMenu && !(GetUIManager().GetMenu() && GetUIManager().GetMenu().GetID() == MENU_TITLE_SCREEN))
2477 GetInput().IdentifyGamepad(GetInput().GetEnterButton());
2478 }
2479 #endif
2480 #endif
2481 }
2482#endif
2483 }
DayZGame g_Game
Определения DayZGame.c:3942
int GetID()
Get the ID registered in SEffectManager.
Определения Effect.c:561
proto native UIManager GetUIManager()
void CreateTitleScreen()
Определения DayZGame.c:2153
proto native BiosUserManager GetUserManager()
void DeleteTitleScreen()
Определения DayZGame.c:2193
ref Widget m_IntroMenu
Определения DayZGame.c:2125
void SelectUser(int gamepad=-1)
Определения DayZGame.c:2338
proto native Input GetInput()
int GetUserGamepad(BiosUser user)
Определения input.c:338
proto native void IdentifyGamepad(GamepadButton button)
the on OnGamepadIdentification callback will return the first gamepad where the button was pressed
const int MENU_TITLE_SCREEN
Определения 3_Game/DayZ/constants.c:196

Перекрестные ссылки CreateTitleScreen(), DeleteTitleScreen(), g_Game, GetID(), GetInput(), GetUIManager(), Input::GetUserGamepad(), GetUserManager(), Input::IdentifyGamepad(), m_IntroMenu, MENU_TITLE_SCREEN и SelectUser().

Используется в ConnectLaunch(), DisconnectSessionEx(), MissionLaunch() и SelectUser().