Browse Source

added pageup/pagedown shortcut for setup

master
parent
commit
fe1c6984ad
1 changed files with 31 additions and 0 deletions
  1. +31
    -0
      neercs/video/render.cpp

+ 31
- 0
neercs/video/render.cpp View File

@@ -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)


Loading…
Cancel
Save