[Scummvm-tracker] [ScummVM :: Bugs] #12532: Mouse Cursor Snaps to Top Left Corner on Android 8.1.0 Device

ScummVM :: Bugs trac at scummvm.org
Sat May 22 19:02:37 UTC 2021


#12532: Mouse Cursor Snaps to Top Left Corner on Android 8.1.0 Device
-------------------------------------------------+-------------------------
Reporter:  Zeimyth                               |       Owner:  (none)
    Type:  defect                                |      Status:  new
Priority:  normal                                |   Component:  Port:
                                                 |  Android
 Version:                                        |  Resolution:
Keywords:  android touch mouse cursor snap top   |        Game:
  left                                           |
-------------------------------------------------+-------------------------
Comment (by Zeimyth):

 So I've done a little bit of digging.

 I found some commented out touch event debugging code (
 https://github.com/scummvm/scummvm/blob/master/backends/platform/android/org/scummvm/scummvm/ScummVMEventsBase.java#L428-L441
 ), which I have uncommented in a local build. I also added my own debug
 line at the top of MouseHelper.onMouseEvent (
 https://github.com/scummvm/scummvm/blob/master/backends/platform/android/org/scummvm/scummvm/MouseHelper.java#L169
 ). I then performed a single swiping motion across my screen on both the
 Contixo V9 and my Pixel 3. Curiously, the Pixel did not trigger the
 MouseHelper debug statements, but the Contixo did. I've attached an output
 sample from both. It looks like my Contixo device is reporting extra mouse
 hover events at the start and end of my touch action. According to the
 Android documentation for the MotionEvent enumeration, 7 is
 ACTION_HOVER_MOVE, 9 is ACTION_HOVER_ENTER, and 10 is ACTION_HOVER_EXIT.

 For thoroughness, the line I added to MouseHelper.java is:

 android.util.Log.d("MouseHandler.java onMouseEvent", e.getAction() + ": ("
 + e.getX() + ", " + e.getY() + ")");
-- 
Ticket URL: <https://bugs.scummvm.org/ticket/12532#comment:6>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list