Browse Source

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

master
Sam Hocevar 11 years ago
parent
commit
282d9868e4
2 changed files with 6 additions and 0 deletions
  1. +4
    -0
      neercs/term/term.cpp
  2. +2
    -0
      neercs/video/render.cpp

+ 4
- 0
neercs/term/term.cpp View File

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


#if defined HAVE_PTY_H || defined HAVE_UTIL_H || defined HAVE_LIBUTIL_H #if defined HAVE_PTY_H || defined HAVE_UTIL_H || defined HAVE_LIBUTIL_H
#if 0
if (!g_setup) if (!g_setup)
{ {
bool have_ctrl = Input::GetStatus(Key::LeftCtrl) 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); m_pty->WriteData(lut[i].str, lut[i].len);
} }
} }
#endif


m_time += seconds; m_time += seconds;


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


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


if (m_debug) if (m_debug)
{ {


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

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


Entity::TickDraw(seconds); Entity::TickDraw(seconds);




Loading…
Cancel
Save