You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At least on Windows, key events seem to respond with a delay (especially when a key is being mashed) due to key repeat handling. Is there any way to disable this?
It's also easy to implement on macOS. Since there's a precedent for how to handle this on X11, we might as well go for it (though I don't consider it a priority at present).
What's the ideal here? Adding an is_repeat field to KeyboardInput? Or it being configurable to completely strip out repeats? Both?
On windows, key repetition is currently way too fast, I'm not sure what's up with that, if it's a bug or not - is there any way to disable key repetition in winit? It's just because if I type "Hello World", I get "HHeeello WWWorrrrld" because the delay for key repetition is extremely low for some reason.
@fschutt I'm not able to reproduce that on Windows 10, though making it possible to filter key repeats would be easy on all platforms other than X11. I'm curious about why that's happening at all, though.
It seems like necroposting, but I've spend a decent amount researching relevant issues with no avail. Perhaps a hacky solution could be outlined at least as a temporary fix? It seems like the proposed bodge solution from GLFW doesn't exactly work, since winit doesn't provide the event timestamps.
Am I missing any feature flags? Currently looking at the latest 0.28.6 version and not seeing anything called KeyEvent or similar. There is KeyboardInput, but it doesn't seem to have the is_repeat field.
Activity
elinorbgr commentedon Oct 7, 2017
For the record, the usecase of disabling key repeats is also of interest for smithay, otherwise we would need to filter-out repeated events...
elliegoldstein commentedon Oct 7, 2017
@vberger I think you're missing the ":" in the "https://" of your link
elinorbgr commentedon Oct 8, 2017
Indeed, I've corrected it. 😅
francesca64 commentedon Apr 22, 2018
We actually can't implement this on X11 without resorting to heuristics, though AFAIK it's straightforward to implement on Windows.
francesca64 commentedon May 15, 2018
It's also easy to implement on macOS. Since there's a precedent for how to handle this on X11, we might as well go for it (though I don't consider it a priority at present).
What's the ideal here? Adding an
is_repeatfield toKeyboardInput? Or it being configurable to completely strip out repeats? Both?fschutt commentedon Sep 6, 2018
On windows, key repetition is currently way too fast, I'm not sure what's up with that, if it's a bug or not - is there any way to disable key repetition in winit? It's just because if I type "Hello World", I get "HHeeello WWWorrrrld" because the delay for key repetition is extremely low for some reason.
francesca64 commentedon Sep 11, 2018
@fschutt I'm not able to reproduce that on Windows 10, though making it possible to filter key repeats would be easy on all platforms other than X11. I'm curious about why that's happening at all, though.
Osspial commentedon Apr 24, 2019
Closing in favor of #753 and #812
Switch to using surfman in X11 mode.
ktnlvr commentedon Jun 28, 2023
It seems like necroposting, but I've spend a decent amount researching relevant issues with no avail. Perhaps a hacky solution could be outlined at least as a temporary fix? It seems like the proposed bodge solution from GLFW doesn't exactly work, since winit doesn't provide the event timestamps.
kchibisov commentedon Jun 28, 2023
KeyEventhasis_repeatfield, so simply ignore repeats.ktnlvr commentedon Jun 29, 2023
Am I missing any feature flags? Currently looking at the latest 0.28.6 version and not seeing anything called
KeyEventor similar. There isKeyboardInput, but it doesn't seem to have theis_repeatfield.kchibisov commentedon Jun 29, 2023
Yeah, you need winit from master.