Expand description
winit-event -> retroglyph-event converters. winit-event -> retroglyph-event converters.
Pure functions, unit-testable without a window.
Functions§
- translate_
ime - Translates a winit
Imeevent into anEvent. - translate_
key - Translates a winit key event into an
Event. - translate_
key_ event_ kind - Maps a winit key
state/repeatpair to aKeyEventKind. - translate_
key_ location - Maps winit’s
KeyLocation1:1 onto ourKeyLocation. - translate_
modifiers - Translates winit modifier state into our
KeyModifiers. - translate_
mouse_ button - Translates a winit [
winit::event::MouseButton] into ourMouseButton. - translate_
physical_ pos - Converts a raw f64 cursor position to a
PhysicalPos. - translate_
pixel_ to_ cell - Converts physical pixel coordinates to a grid cell
Pos, given a rawcell_w/cell_hpixel size.