Skip to content
Snippets Groups Projects
Commit 445a93d0 authored by Joseph Walton-Rivers's avatar Joseph Walton-Rivers
Browse files

remind myself to make debugui handle input properly

parent f44fc1cc
No related branches found
No related tags found
No related merge requests found
...@@ -333,6 +333,7 @@ public: ...@@ -333,6 +333,7 @@ public:
void update() override { void update() override {
process_camera(m_world, m_inputs); process_camera(m_world, m_inputs);
// JWR - this doesn't really seem like it belongs in the game scene...
if ( m_inputs->keyboard.pressed(glfwGetKeyScancode(GLFW_KEY_F10)) ) { if ( m_inputs->keyboard.pressed(glfwGetKeyScancode(GLFW_KEY_F10)) ) {
auto dbgui = fggl::util::ServiceLocator::instance().providePtr<fggl::debug::DebugUI>(); auto dbgui = fggl::util::ServiceLocator::instance().providePtr<fggl::debug::DebugUI>();
dbgui->visible( !dbgui->visible() ); dbgui->visible( !dbgui->visible() );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment