Bladeren bron

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

master
Sam Hocevar 11 jaren geleden
bovenliggende
commit
282d9868e4
2 gewijzigde bestanden met toevoegingen van 6 en 0 verwijderingen
  1. +4
    -0
      neercs/term/term.cpp
  2. +2
    -0
      neercs/video/render.cpp

+ 4
- 0
neercs/term/term.cpp Bestand weergeven

@@ -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 Bestand weergeven

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



Laden…
Annuleren
Opslaan