pub fn use_keyboard_input(
    hooks: &mut Hooks<'_>,
    func: impl Fn(&mut World, Option<VirtualKeyCode>, ModifiersState, bool) + Sync + Send + 'static
)
Expand description

Helper wrapper around use_runtime_message that listens to WindowKeyboardInput messages and parses them for you.

The boolean is whether or not the button was pressed (true) or released (false).

NOTE: This may be removed in future versions of the API when parsing is no longer necessary.