Module freya::prelude::keyboard

source ·

Structs§

Enums§

  • Code is the physical position of a key.
  • Key represents the meaning of a keypress.

Functions§

  • Return the equivalent Winit’s Key in keyboard_types
  • Return the equivalent of Winit’s PhysicalKey in keyboard_types
  • The globalkeydown event fires when the user starts pressing any key.
  • The globalkeyup event fires when the user releases any key being pressed.
  • The keydown event fires when the user starts pressing any key in the currently focused element.
  • The keyup event fires when the user releases any key being pressed in the currently focused element.