瀏覽代碼

added pageup/pagedown shortcut for setup

master
父節點
當前提交
fe1c6984ad
共有 1 個檔案被更改,包括 31 行新增0 行删除
  1. +31
    -0
      neercs/video/render.cpp

+ 31
- 0
neercs/video/render.cpp 查看文件

@@ -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…
取消
儲存