summaryrefslogtreecommitdiffhomepage
path: root/UI.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2025-01-06 00:26:43 +0000
committerRoland Reichwein <mail@reichwein.it>2025-01-06 00:26:43 +0000
commit8609722958b89ce71e8336e3254fc5a88912a0e8 (patch)
tree9a586821f313fa41d8ce00f0f991de716159846e /UI.cpp
parent3683789a25d118f9a82bd1c7eae36af82b9f499d (diff)
Bugfix
Diffstat (limited to 'UI.cpp')
-rw-r--r--UI.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/UI.cpp b/UI.cpp
index 9fdb10c..0b281b9 100644
--- a/UI.cpp
+++ b/UI.cpp
@@ -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)) {