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

◆ OnInputDeviceChanged()

void OnInputDeviceChanged ( EInputDeviceType pInputDeviceType)
protected

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

537 {
538 int count = GetArticleCount();
539 bool showNext = m_ArticleIndex < count - 1;
540 bool showPrevious = m_ArticleIndex > 0;
541
542 if (pInputDeviceType == EInputDeviceType.UNKNOWN && g_Game.GetInput().IsActiveGamepadSelected())
543 pInputDeviceType = EInputDeviceType.CONTROLLER;
544
545 switch (pInputDeviceType)
546 {
547 case EInputDeviceType.CONTROLLER:
548 {
549 m_CurrentInputDevice = pInputDeviceType;
550 m_HotlinkButtonLabel.SetText(GetButtonLabel("255, 255, 255, 255"));
551 m_NextPageBtnIcon.Show(false);
552 m_PrevPageBtnIcon.Show(false);
553 #ifdef PLATFORM_CONSOLE
554 m_NextPageBtnIconConsole.Show(showNext);
555 m_PrevPageBtnIconConsole.Show(showPrevious);
556 #endif
557 break;
558 }
559 default:
560 {
561 if (g_Game.GetInput().IsEnabledMouseAndKeyboard())
562 {
563 m_CurrentInputDevice = pInputDeviceType;
564 m_HotlinkButtonLabel.SetText(GetButtonLabel("255, 255, 255, 255"));
565 #ifdef PLATFORM_CONSOLE
566 m_NextPageBtnIconConsole.Show(false);
567 m_PrevPageBtnIconConsole.Show(false);
568 #endif
569 m_NextPageBtnIcon.Show(showNext);
570 m_PrevPageBtnIcon.Show(showPrevious);
571 break;
572 }
573 }
574 }
575 }
DayZGame g_Game
Определения DayZGame.c:4074
EInputDeviceType
Определения input.c:3

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