improved shifting up video display when activating screen keyboard (Android)
[rocksndiamonds.git] / src / events.c
index e197be5cef3039e9111ea89e021a4cfd09dfad6e..5bcdd5fb22c723e4aaba848b844e2b4d937f1b03 100644 (file)
@@ -412,6 +412,11 @@ void HandleButtonEvent(ButtonEvent *event)
        event->x, event->y);
 #endif
 
+#if defined(HAS_SCREEN_KEYBOARD)
+  if (video.shifted_up)
+    event->y += video.shifted_up_pos;
+#endif
+
   motion_status = FALSE;
 
   if (event->type == EVENT_BUTTONPRESS)