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 4567 - Android mouse wheel events broken / not generated
Summary: Android mouse wheel events broken / not generated
Status: RESOLVED DUPLICATE of bug 4568
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: 2.0.9
Hardware: ARM Android (All)
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-28 10:51 UTC by Ellie
Modified: 2019-03-28 11:09 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ellie 2019-03-28 10:51:30 UTC
I tested a hardware mouse via usb-a to usb-c adapter on Android, and the mousewheel doesn't cause any sort of SDL events! I checked what SDL_PollEvent() does when mouse wheel scrolling, and it simply doesn't return anything when that happens.

Native android apps support mouse wheel scrolling just fine, so there has to be away to get & generate these events on Android. Since not being able to scroll can be extremely annoying, could this possibly be fixed?

PS: tested on Android 7.1.1 in case this depends on the Android version
Comment 1 Ellie 2019-03-28 11:09:00 UTC
Ok it seems after some more examination the actual problem is that I only get SDL_TOUCH_MOUSEID events (as if it was a finger) for the actual hardware mouse which doesn't make any sense - at least not for a properly written mouse-aware app.

I am therefore closing this in favor of #4568 which asks for a way to disable this "pretend hardware mouse is a finger" behavior to get proper unfiltered hardware mouse events.

*** This bug has been marked as a duplicate of bug 4568 ***