Double Mouse Cursor - Solved in Android 8

Subforum for discussion and help with ScummVM's Android port

Moderator: ScummVM Team

Post Reply
gregoryoyork
Posts: 1
Joined: Sat Jun 09, 2018 7:49 pm

Double Mouse Cursor - Solved in Android 8

Post by gregoryoyork » Thu Aug 30, 2018 9:51 pm

I haven't seen this on the forums, and I know this has been a problem.

Anyone using Android TV or a Chromebook has this issue. Starting with 8.0, the Android port of ScummVM can use the requestPointerCapture feature, allowing the standard cursor to be replaced by the application's cursor.

Dragoth
Posts: 2
Joined: Wed Nov 14, 2018 7:51 am

Re: Double Mouse Cursor - Solved in Android 8

Post by Dragoth » Thu Nov 15, 2018 7:20 am

gregoryoyork wrote:
Thu Aug 30, 2018 9:51 pm
I haven't seen this on the forums, and I know this has been a problem.

Anyone using Android TV or a Chromebook has this issue. Starting with 8.0, the Android port of ScummVM can use the requestPointerCapture feature, allowing the standard cursor to be replaced by the application's cursor.
Is this already the case (can't find any commits stating that it is), or does this still need to be implemented?

This might be somewhat naive to ask, but:
If it needs to be implemented, could somebody point me to the right repository or possibly even the file where this could/should be done?
e.g.: https://github.com/scummvm/scummvm/tree ... rm/android ?

I haven't developed for Android in quite some time, but would be willing to try...

digitall
ScummVM Developer
Posts: 964
Joined: Thu Aug 02, 2012 1:40 pm

Re: Double Mouse Cursor - Solved in Android 8

Post by digitall » Thu Nov 15, 2018 2:30 pm

Dragoth: A quick search of the website and wiki would have thrown up this...
https://wiki.scummvm.org/index.php/Developer_Central
https://wiki.scummvm.org/index.php?titl ... ng_ScummVM
https://wiki.scummvm.org/index.php?titl ... VM/Android
https://wiki.scummvm.org/index.php?titl ... ndroid-SDL

The SDL based backend is the newer one... Submissions for patches as Github Pull Requests as you indicate.

Dragoth
Posts: 2
Joined: Wed Nov 14, 2018 7:51 am

Re: Double Mouse Cursor - Solved in Android 8

Post by Dragoth » Sat Nov 17, 2018 11:04 am

digitall wrote:
Thu Nov 15, 2018 2:30 pm
Dragoth: A quick search of the website and wiki would have thrown up this...
I already found your linked docs/tutorials beforehand- i was just hoping that maybe a developer had some idea how to implement it and could point me in the right direction. Nevertheless, thanks for your post! (no sarcasm)

I had some time to read through some of the source in the android port of ScummVM and have some ideas. Once i get a little free time I'll make a pullrequest.

For anyone else interested:

From androidpolice: https://www.androidpolice.com/2017/05/1 ... e-pointer/
...using the new requestPointerCapture method. This will cause the on-screen pointer to disappear, and all mouse events will be transmitted to the application.
Android will automatically release the pointer capture if the app is closed or otherwise loses focus.

Android documentation: https://developer.android.com/training/ ... er-capture

digitall
ScummVM Developer
Posts: 964
Joined: Thu Aug 02, 2012 1:40 pm

Re: Double Mouse Cursor - Solved in Android 8

Post by digitall » Sat Nov 17, 2018 5:06 pm

No problem. Will look forward to any Pull Requests :)

Post Reply