From 5da82d84237f2e01d3377509ebde9d5f2c35c227 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Fri, 18 Sep 2020 18:00:08 +0200 Subject: [PATCH] [ion] Add comment --- ion/src/simulator/shared/events_keyboard.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ion/src/simulator/shared/events_keyboard.cpp b/ion/src/simulator/shared/events_keyboard.cpp index ce6b3c602..26d1ba208 100644 --- a/ion/src/simulator/shared/events_keyboard.cpp +++ b/ion/src/simulator/shared/events_keyboard.cpp @@ -200,6 +200,8 @@ Event getPlatformEvent() { SDL_GetMouseState(&p.x, &p.y); Simulator::Layout::highlightKeyAt(&p); } + /* On smarphones, don't forget to unhighlight the key when the finger is up. + * (finger up doesn't imply a mouse motion!) */ if (event.type == SDL_FINGERUP) { Simulator::Layout::unhighlightKey(); }