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 3313

Summary: Android : missing SDL_MOUSEMOTION event, in separate mouse and touch mode
Product: SDL Reporter: Sylvain <sylvain.becker>
Component: eventsAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: philipp.wiesemann
Version: HG 2.0   
Hardware: All   
OS: Android (All)   
Attachments: patch

Description Sylvain 2016-04-21 16:03:35 UTC
Created attachment 2435 [details]
patch

In Android, using a real mouse with the hint separate touch and mouse:

SDL_SetHint(SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH, "1");

When a mouse button is pressed, and the mouse is moving, SDL_MOUSEMOTION event are missing.

This happens because only ACTION_HOVER_MOVE is handled. ACTION_MOVE needs also to be handled
see: http://developer.android.com/reference/android/view/MotionEvent.html#ACTION_MOVE

Very small patch included!
Comment 1 Philipp Wiesemann 2016-08-30 19:27:50 UTC
This patch is now https://hg.libsdl.org/SDL/rev/b75ad23f8811, thanks!