diff options
Diffstat (limited to 'UI.cpp')
-rw-r--r-- | UI.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -174,7 +174,7 @@ void UI::draw() void UI::handle_input() { // handle console key - if (key_available()) { + if (stdin_available()) { char c; std::cin >> c; @@ -203,7 +203,7 @@ void UI::handle_input() } // handle touchpad - if (m_touchpad.is_valid() && m_touchpad.event_available()) { + if (m_touchpad.event_available()) { input_event ev = m_touchpad.get_event(); if (m_touchpad.event_is_button1(ev)) { |