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

◆ GamepadCheck()

void CGame::GamepadCheck ( )
inlineprotected

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

2480 {
2481#ifdef PLATFORM_MSSTORE
2482 // MS Store build always has user selected at this point. So just proceed.
2483 // This imitates the behavior when a gamepad is already selected.
2485 SelectUser();
2486 return;
2487#endif
2488
2489#ifndef AUTOTEST
2490 if (GetInput().IsActiveGamepadSelected())
2491 {
2492#endif
2494 SelectUser();
2495#ifndef AUTOTEST
2496 }
2497 else
2498 {
2499 #ifdef PLATFORM_CONSOLE
2500 #ifndef PLATFORM_WINDOWS
2501 #ifdef PLATFORM_PS4
2502 if (GetUserManager().GetSelectedUser())
2503 {
2504 int gamepad = GetInput().GetUserGamepad(GetUserManager().GetSelectedUser());
2505 if (gamepad > -1)
2506 {
2507 SelectUser(gamepad);
2508 }
2509 else
2510 {
2511 if (!m_IntroMenu && !(g_Game.GetUIManager().GetMenu() && g_Game.GetUIManager().GetMenu().GetID() == MENU_TITLE_SCREEN))
2513 g_Game.GetInput().IdentifyGamepad(g_Game.GetInput().GetEnterButton());
2514 }
2515 }
2516 else
2517 #endif
2518 {
2519 if (!m_IntroMenu && !(GetUIManager().GetMenu() && GetUIManager().GetMenu().GetID() == MENU_TITLE_SCREEN))
2521 GetInput().IdentifyGamepad(GetInput().GetEnterButton());
2522 }
2523 #endif
2524 #endif
2525 }
2526#endif
2527 }
DayZGame g_Game
Определения DayZGame.c:4074
int GetID()
Get the ID registered in SEffectManager.
Определения Effect.c:561
proto native UIManager GetUIManager()
void CreateTitleScreen()
Определения DayZGame.c:2197
proto native BiosUserManager GetUserManager()
void DeleteTitleScreen()
Определения DayZGame.c:2237
ref Widget m_IntroMenu
Определения DayZGame.c:2164
void SelectUser(int gamepad=-1)
Определения DayZGame.c:2382
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:202

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

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