We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2930

Summary: Mouse deficiencies in Android...
Product: SDL Reporter: Ryan C. Gordon <icculus>
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: philipp.wiesemann, sylvain.becker
Version: HG 2.0   
Hardware: All   
OS: Android (All)   

Description Ryan C. Gordon 2015-04-06 23:29:17 UTC
In reference to: https://bugzilla.libsdl.org/show_bug.cgi?id=1666#c2

We have the mouse events in now, but the cursor stuff hasn't been looked at yet.

Also, we need to move up to API14 and remove the mouse button hack mentioned further down in that bug, but that needs to happen after 2.0.4 ships.

--ryan.
Comment 1 Sylvain 2016-06-30 08:09:33 UTC
In case you decide to bump the targetSdkVersion, please explicitly states the APP_PLATFORM for the native libraries.


If no APP_PLATFORM is defined in jni/Application.mk, then the one that will be applied is the targetSdkVersion of AndroidManifest.xml.
(which is bad because, the minSdkVersion should be applied) 

(see https://bugzilla.libsdl.org/show_bug.cgi?id=2758)
Comment 2 Sylvain 2017-11-10 20:38:00 UTC
for the record, in API 26 Android 8.0: 

https://developer.android.com/reference/android/view/View.html#requestPointerCapture()

When the window has pointer capture, the mouse pointer icon will disappear and will not change its position. Further mouse will be dispatched with the source SOURCE_MOUSE_RELATIVE, and relative position changes will be available through getX() and getY(). Non-mouse events (touchscreens, or stylus) will not be affected.
Comment 3 Sylvain 2017-11-12 20:13:39 UTC
android patch for SDL_SetRelativeMode in bug 3226
Comment 4 Sylvain 2019-01-17 14:38:23 UTC
Since, this is api 16, there is mouse relative support and cursor also.
I am closing it