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

[UWP] Mouse input blocks/delays keyboard input #5300

Closed
JarrydSemmens opened this issue Nov 16, 2016 · 2 comments
Closed

[UWP] Mouse input blocks/delays keyboard input #5300

JarrydSemmens opened this issue Nov 16, 2016 · 2 comments

Comments

@JarrydSemmens
Copy link

InputEvents.cs is where the keyboard/mouse events are attached to allow MonoGame to collect input.

If the mouse is moving/clicking then keyboard input is delayed until it stops. This includes key released states, so it effects first person game very badly.

Attaching to the CoreWindow's keyboard and mouse events shows this.
Attached to the CoreIndependentInputSource for the Mouse, with the keyboard coming from the CoreWindow (standard practice) also causes this.

This did not occur in Windows 8/8.1 and only occurs in Windows 10.

@nkast
Copy link
Contributor

nkast commented Nov 16, 2016

Mouse events with CoreIndependentInputSource shouldn't block keyboard events in the main thread.
In any case can you test #5158? It removes the slow lock() which is significant in the case of Mouse where you have a rapid stream of events.

The other place I would look at is the Processing of Touch/Mouse Events. Perhaps that adds to the Draw time and cause the main thread to queue up keyboard events. In that case you have to move draw in it's own thread as well.

@tomspilman
Copy link
Member

Fixed in #5520.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants