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

◆ OnInputDeviceChanged()

void OnInputDeviceChanged ( EInputDeviceType pInputDeviceType)
protected

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

505 {
506 bool showNext = m_ArticleIndex < m_NewsArticles.Count() - 1;
507 bool showPrevious = m_ArticleIndex > 0;
508
509 if (pInputDeviceType == EInputDeviceType.UNKNOWN && g_Game.GetInput().IsActiveGamepadSelected())
510 pInputDeviceType = EInputDeviceType.CONTROLLER;
511
512 switch (pInputDeviceType)
513 {
514 case EInputDeviceType.CONTROLLER:
515 {
516 m_CurrentInputDevice = pInputDeviceType;
517 m_HotlinkButtonLabel.SetText(GetButtonLabel("255, 255, 255, 255"));
518 m_NextPageBtnIcon.Show(false);
519 m_PrevPageBtnIcon.Show(false);
520 #ifdef PLATFORM_CONSOLE
521 m_NextPageBtnIconConsole.Show(showNext);
522 m_PrevPageBtnIconConsole.Show(showPrevious);
523 #endif
524 break;
525 }
526 default:
527 {
528 if (g_Game.GetInput().IsEnabledMouseAndKeyboard())
529 {
530 m_CurrentInputDevice = pInputDeviceType;
531 m_HotlinkButtonLabel.SetText(GetButtonLabel("255, 255, 255, 255"));
532 #ifdef PLATFORM_CONSOLE
533 m_NextPageBtnIconConsole.Show(false);
534 m_PrevPageBtnIconConsole.Show(false);
535 #endif
536 m_NextPageBtnIcon.Show(showNext);
537 m_PrevPageBtnIcon.Show(showPrevious);
538 break;
539 }
540 }
541 }
542 }
DayZGame g_Game
Определения DayZGame.c:3942
EInputDeviceType
Определения input.c:3

Перекрестные ссылки g_Game, GetButtonLabel(), m_ArticleIndex, m_CurrentInputDevice, m_HotlinkButtonLabel, m_NewsArticles, m_NextPageBtnIcon и m_PrevPageBtnIcon.