[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:31:44 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):

 It appears the entry point for the mouse events is MouseHelper.onHover (
 https://github.com/scummvm/scummvm/blob/master/backends/platform/android/org/scummvm/scummvm/MouseHelper.java#L59
 ). Uncommenting L60 and L177 in that file gives output like:

 05-22 12:26:51.122   433   433 D ScummVM : onHover mouseEvent
 05-22 12:26:51.123   433   433 D MouseHandler.java onMouseEvent: 9: (0.0,
 0.0)                                          05-22 12:26:51.123   433
 433 D ScummVM : onMouseEvent buttonState = 0
 05-22 12:26:51.125   433   433 D ScummVM : onHover mouseEvent
 05-22 12:26:51.126   433   433 D MouseHandler.java onMouseEvent: 10: (0.0,
 0.0)                                         05-22 12:26:51.126   433
 433 D ScummVM : onMouseEvent buttonState = 0

 I'm uncertain what a "hover" really means in the world of touch inputs. If
 I hold my finger extremely close to the screen and move it around, I can
 create a stream of hover debug statements without ever triggering a touch
 event. I don't know why these are all being reported at coordinates (0,
 0), but my device does seem to be picking up something legitimate. I also
 don't know why I would be getting hover inputs on the Contixo device but
 not the Pixel device.
-- 
Ticket URL: <https://bugs.scummvm.org/ticket/12532#comment:7>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list