Przeglądaj źródła

added pageup/pagedown shortcut for setup

master
rodzic
commit
fe1c6984ad
1 zmienionych plików z 31 dodań i 0 usunięć
  1. +31
    -0
      neercs/video/render.cpp

+ 31
- 0
neercs/video/render.cpp Wyświetl plik

@@ -590,6 +590,37 @@ void Render::TickDraw(float seconds)
}
timer_key = timer;
}
if (Input::GetButtonState(280/*SDLK_PAGEUP*/)&&(timer-timer_key>timer_key_repeat))
{
if (m_setup)
{
if (!setup_switch)
{
setup_option = 0;
}
else
{
setup_item = 0;
}
}
timer_key = timer;
}
if (Input::GetButtonState(281/*SDLK_PAGEDOWN*/)&&(timer-timer_key>timer_key_repeat))
{
if (m_setup)
{
if (!setup_switch)
{
setup_option = setup_option_n - 1;
setup_item = 0;
}
else
{
setup_item = setup_item_n - 1;
}
}
timer_key = timer;
}
if (Input::GetButtonState(276/*SDLK_LEFT*/)&&(timer-timer_key>timer_key_repeat))
{
if (m_setup && setup_switch)


Ładowanie…
Anuluj
Zapisz