-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
SDL analog mouse input #12612
SDL analog mouse input #12612
Conversation
Fixed |
Sending KEY_UP right after was too fast for any game I tried (was working only on the bind menu), added mouse 3, 4 and 5 press as well to match windows version. |
Hm, what if there's not a next cycle? Maybe a timer (frame counter) to send a KEY_UP after a while? |
If is in the main loop, while (true), shouldn't there be always another cycle (unless the emulator get closed at least)? |
Oh right, for some reason I thought you meant next time you get a mousewheel event. Never mind, it seems right (but only one frame of down state might not always be enough). |
Yeah, made it 5 (may be a bit too much, but it allow to simulate a hold if scrolled fast, still can be reduced) |
Yeah, we can tweak that as needed. Let's merge. |
Add analog mouse input to SDL, adding another platform to #4650.