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

Fix input event being dispatched multiple times on Windows #37519

Merged
merged 1 commit into from
May 16, 2020

Conversation

HaSa1002
Copy link
Contributor

@HaSa1002 HaSa1002 commented Apr 2, 2020

fixes #37425
fixes #37322
fixes #37331
fixes #37329
fixes #38781 (as of #37519 (comment))
implemented comparable to #37339

I am a little bit unsure about this patch not only being symptom fixing. According to that call stack the recursion occurs at the window creation

Edit: Fixed input deadlock

@HaSa1002
Copy link
Contributor Author

HaSa1002 commented Apr 2, 2020

Commenting that line out fixes the issue, too. I'd prefer that solution, but I don't know if it breaks anything. What is the intention?

InputFilter::get_singleton()->release_pressed_events();

@HaSa1002
Copy link
Contributor Author

HaSa1002 commented Apr 2, 2020

Okay, I got the intention and commenting it out is not the correct solution.

@HaSa1002 HaSa1002 force-pushed the fix-duplicate-inputs-win branch 2 times, most recently from fbb9c36 to 0daf13e Compare April 30, 2020 13:03
@Anutrix
Copy link
Contributor

Anutrix commented May 9, 2020

Is this PR ready or still WIP?
Asked because, I feel that this might fix more issues than we think.

@HaSa1002
Copy link
Contributor Author

HaSa1002 commented May 9, 2020

It's ready.

@pouleyKetchoupp
Copy link
Contributor

This also fixes #38781

@akien-mga It would be great to merge this PR soon, as working with the editor is pretty cumbersome for Windows users at the moment.

@HaSa1002 HaSa1002 changed the title fix input event being dispatched multiple times on Windows Fix input event being dispatched multiple times on Windows May 16, 2020
@HaSa1002 HaSa1002 force-pushed the fix-duplicate-inputs-win branch from 0daf13e to e103dd0 Compare May 16, 2020 14:12
@HaSa1002
Copy link
Contributor Author

Ah wait. Failed to rebase correctly. I have to check. What I removed by accident

@HaSa1002 HaSa1002 force-pushed the fix-duplicate-inputs-win branch from e103dd0 to 434bf05 Compare May 16, 2020 14:18
@HaSa1002
Copy link
Contributor Author

Okay restored what I did...

@akien-mga akien-mga merged commit 1702fb7 into godotengine:master May 16, 2020
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment