瀏覽代碼

input: disable keyboard tests the new input system doesn't support yet.

master
Sam Hocevar 11 年之前
父節點
當前提交
282d9868e4
共有 2 個文件被更改,包括 6 次插入0 次删除
  1. +4
    -0
      neercs/term/term.cpp
  2. +2
    -0
      neercs/video/render.cpp

+ 4
- 0
neercs/term/term.cpp 查看文件

@@ -42,6 +42,7 @@ void Term::TickGame(float seconds)
Entity::TickGame(seconds);

#if defined HAVE_PTY_H || defined HAVE_UTIL_H || defined HAVE_LIBUTIL_H
#if 0
if (!g_setup)
{
bool have_ctrl = Input::GetStatus(Key::LeftCtrl)
@@ -108,6 +109,7 @@ void Term::TickGame(float seconds)
m_pty->WriteData(lut[i].str, lut[i].len);
}
}
#endif

m_time += seconds;

@@ -147,8 +149,10 @@ void Term::TickGame(float seconds)
}

/* Some fancy shit if we press F3 */
#if 0
if (Input::WasPressed(Key::F3))
m_debug = !m_debug;
#endif

if (m_debug)
{


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

@@ -1076,6 +1076,7 @@ void Render::Pause()
void Render::TickDraw(float seconds)
{
/* keyboard manager */
#if 0
if (Input::WasPressed(Key::F1))
{
g_setup = !g_setup;
@@ -1371,6 +1372,7 @@ void Render::TickDraw(float seconds)
//flash_flag = true;
//flash_angle = main_angle;
}
#endif

Entity::TickDraw(seconds);



Loading…
取消
儲存