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 - Android : missing SDL_MOUSEMOTION event, in separate mouse and touch mode
Summary: Android : missing SDL_MOUSEMOTION event, in separate mouse and touch mode
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: HG 2.0
Hardware: All Android (All)
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-21 16:03 UTC by Sylvain
Modified: 2016-08-30 19:27 UTC (History)
1 user (show)

See Also:


Attachments
patch (633 bytes, patch)
2016-04-21 16:03 UTC, Sylvain
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!