[ion] Add comment

This commit is contained in:
Émilie Feral
2020-09-18 18:00:08 +02:00
committed by EmilieNumworks
parent 33425e04c0
commit 5da82d8423

View File

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