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

◆ GamepadCheck()

void CGame::GamepadCheck ( )
inlineprotected

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

2422 {
2423#ifndef AUTOTEST
2424 if (GetInput().IsActiveGamepadSelected())
2425 {
2426#endif
2428 SelectUser();
2429#ifndef AUTOTEST
2430 }
2431 else
2432 {
2433 #ifdef PLATFORM_CONSOLE
2434 #ifndef PLATFORM_WINDOWS
2435 #ifdef PLATFORM_PS4
2436 if (GetUserManager().GetSelectedUser())
2437 {
2438 int gamepad = GetInput().GetUserGamepad(GetUserManager().GetSelectedUser());
2439 if (gamepad > -1)
2440 {
2441 SelectUser(gamepad);
2442 }
2443 else
2444 {
2445 if (!m_IntroMenu && !(GetGame().GetUIManager().GetMenu() && GetGame().GetUIManager().GetMenu().GetID() == MENU_TITLE_SCREEN))
2447 GetGame().GetInput().IdentifyGamepad(GetGame().GetInput().GetEnterButton());
2448 }
2449 }
2450 else
2451 #endif
2452 {
2453 if (!m_IntroMenu && !(GetUIManager().GetMenu() && GetUIManager().GetMenu().GetID() == MENU_TITLE_SCREEN))
2455 GetInput().IdentifyGamepad(GetInput().GetEnterButton());
2456 }
2457 #endif
2458 #endif
2459 }
2460#endif
2461 }
int GetID()
Get the ID registered in SEffectManager.
Определения Effect.c:536
proto native UIManager GetUIManager()
void CreateTitleScreen()
Определения DayZGame.c:2141
proto native BiosUserManager GetUserManager()
void DeleteTitleScreen()
Определения DayZGame.c:2181
ref Widget m_IntroMenu
Определения DayZGame.c:2113
void SelectUser(int gamepad=-1)
Определения DayZGame.c:2324
proto native Input GetInput()
int GetUserGamepad(BiosUser user)
Определения input.c:326
proto native void IdentifyGamepad(GamepadButton button)
the on OnGamepadIdentification callback will return the first gamepad where the button was pressed
proto native CGame GetGame()
const int MENU_TITLE_SCREEN
Определения constants.c:196

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

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