For example KeyboardInput::modifiers is deprecated as:
Deprecated in favor of WindowEvent::ModifiersChanged
However, the docs still say:
Modifier keys active at the time of this input.
This is tracked internally to avoid tracking errors arising from modifier key state changes when events from this device are not being delivered to the application, e.g. due to keyboard focus being elsewhere.
Which sounds like a good argument to let winit track the modifier keys internally. So I'm a bit confused. Is it actually planned to remove the internal tracking of modifier keys? Can applications now reliably track those modifier keys with WindowEvent::ModifiersChanged? Even if I could reliable track modifiers myself, the modifiers field sure is very convenient.
The deprecation was added in #1344
For example
KeyboardInput::modifiersis deprecated as:However, the docs still say:
Which sounds like a good argument to let
winittrack the modifier keys internally. So I'm a bit confused. Is it actually planned to remove the internal tracking of modifier keys? Can applications now reliably track those modifier keys withWindowEvent::ModifiersChanged? Even if I could reliable track modifiers myself, themodifiersfield sure is very convenient.The deprecation was added in #1344