You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
First thanks vary much for this utility - it works great on several phones.
I have encountered an issue using left mouse click inside LibGDX over android (For example on using an S6 device ).
The left mouse click only doesn't work under this framework.
After some investigations I think I have pinpointed the issue to the publication of MotionEvent.
This the event published using scrcpy (log taken from adb dumpsys input) :
Hi,
passing 0x11 is the option that doesn't work. 0x00 should work (at least this what is passed when touching the screen directly)
I can't test it since I have only a pre-built version.
Thanks,
Hi,
First thanks vary much for this utility - it works great on several phones.
I have encountered an issue using left mouse click inside LibGDX over android (For example on using an S6 device ).
The left mouse click only doesn't work under this framework.
After some investigations I think I have pinpointed the issue to the publication of MotionEvent.
This the event published using scrcpy (log taken from adb dumpsys input) :
MotionEvent(deviceId=0, source=0x00001002, action=0, actionButton=0x00000000, flags=0x00000000, metaState=0x00000000, buttonState=0x00000011, edgeFlags=0x00000000, xPrecision=1.0, yPrecision=1.0, displayId=0, pointers=[0: (644.0, 1942.0)]), policyFlags=0x6b000000, age=4630.1ms
And this is the event recorded from real touch screen :
MotionEvent(deviceId=0, source=0x00001002, action=0, actionButton=0x00000000, flags=0x00000000, metaState=0x00000000, buttonState=0x00000000, edgeFlags=0x00000000, xPrecision=1.0, yPrecision=1.0, displayId=0, pointers=[0: (639.0, 1952.0)]), policyFlags=0x6b000000, age=4790.0ms
The different is in the buttonState.
It seems that LibGDX is using this state (you can see relevant code in url)
I'm using following version :
scrcpy 1.8
dependencies:
Thanks
The text was updated successfully, but these errors were encountered: