Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mouse events unusable on MacBook #258

Open
swiftcoder opened this issue Nov 15, 2016 · 1 comment
Open

Mouse events unusable on MacBook #258

swiftcoder opened this issue Nov 15, 2016 · 1 comment
Labels

Comments

@swiftcoder
Copy link

Minko updates the Mouse x, y, dX, and dY fields on both SDL_MOUSEMOVE and SDL_FINGERMOTION events. Unfortunately, the trackpad on a MacBook (presumably also an external Magic Trackpad) produces both types of events for every single interaction.

This causes the deltas to be doubled by the time each mouse event arrives, and the x, y coordinates are all over the place.

@swiftcoder
Copy link
Author

I think the easiest approach would be not to just exclude FINGERMOTION data from the Mouse when (TARGET_OS_MAC && !TARGET_OS_IPHONE).

However, it may be worth considering whether mouse events should be simulated at all on mobile, since SDL seems to have stopped doing that.

@JMLX42 JMLX42 added the glitch label Nov 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants