Expand description
A function for converting a winit::Event
to a carbide::event::Input
.
Modules§
Macros§
- conversion_
fns - Generate a set of conversion functions for converting between render of the crate’s versions of
winit
andcarbide_core
. - convert_
event - A macro for converting a
winit::Event
to acarbide_core::event::Input
. - convert_
key - Maps winit’s key to a carbide
Key
. - convert_
mouse_ button - Maps winit’s mouse button to carbide’s mouse button.
- convert_
mouse_ cursor - Convert a given carbide mouse cursor to the corresponding winit cursor type.
- convert_
window_ event - A macro for converting a
winit::WindowEvent
to aOption<carbide_core::event::Input>
. - v020_
conversion_ fns - v020_
convert_ event - A macro for converting a
winit::Event
to acarbide_core::event::Input
. - v020_
convert_ key - v020_
convert_ mouse_ button - Maps winit’s mouse button to carbide’s mouse button.
- v020_
convert_ mouse_ cursor - Convert a given carbide mouse cursor to the corresponding winit cursor type.
- v020_
convert_ window_ event - A macro for converting a
winit::WindowEvent
to aOption<carbide_core::event::Input>
. - v021_
conversion_ fns - v021_
convert_ event - A macro for converting a
winit::Event
to acarbide_core::event::Input
. - v021_
convert_ key - v021_
convert_ mouse_ button - Maps winit’s mouse button to carbide’s mouse button.
- v021_
convert_ mouse_ cursor - Convert a given carbide mouse cursor to the corresponding winit cursor type.
- v021_
convert_ window_ event - A macro for converting a
winit::WindowEvent
to aOption<carbide_core::event::Input>
. - v023_
conversion_ fns - v023_
convert_ event - A macro for converting a
winit::Event
to acarbide_core::event::Input
. - v023_
convert_ key - v023_
convert_ mouse_ button - Maps winit’s mouse button to carbide’s mouse button.
- v023_
convert_ mouse_ cursor - Convert a given carbide mouse cursor to the corresponding winit cursor type.
- v023_
convert_ window_ event - A macro for converting a
winit::WindowEvent
to aOption<carbide_core::event::Input>
.
Traits§
- Winit
Window - Types that have access to a
winit::Window
and can provide the necessary dimensions and hidpi factor for convertingwinit::Event
s tocarbide::event::Input
, as well as set the mouse cursor.