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
MouseReleased double trigger #359
Comments
The change was meant to make mouse functions with 0.0 deltatime so ideally we'd want that without the new bug. I'll look into it maybe tonight, if you can find the correct fix before feel free to PR :) |
- The idea is that you can't have two MouseReleased (for the same button) on two consecutive frames
Thanks and sorry I couldn't look earlier. I haven't merged your change from #362 But changed Which I think it's more clear. Testing Prev[] was a mistake here. It would miss a release event if mouse was held for a single frame. |
This change should be reverted in my opinion, because it has broken current MouseRelease handling.
It makes MouseReleased == true for two subsequent frames after mouseDown[i] changes from true to false.
It's trivial to check wrong behaviour by modifying the demo as follows.
You will see that you get two mouse releases for each click.
The text was updated successfully, but these errors were encountered: