Crate carbide_winit

Source
Expand description

A function for converting a winit::Event to a carbide::event::Input.

Modules§

macros
A collection of macros for generating code related to winit+carbide interop.
v020
v021
v023

Macros§

conversion_fns
Generate a set of conversion functions for converting between render of the crate’s versions of winit and carbide_core.
convert_event
A macro for converting a winit::Event to a carbide_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 a Option<carbide_core::event::Input>.
v020_conversion_fns
v020_convert_event
A macro for converting a winit::Event to a carbide_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 a Option<carbide_core::event::Input>.
v021_conversion_fns
v021_convert_event
A macro for converting a winit::Event to a carbide_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 a Option<carbide_core::event::Input>.
v023_conversion_fns
v023_convert_event
A macro for converting a winit::Event to a carbide_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 a Option<carbide_core::event::Input>.

Traits§

WinitWindow
Types that have access to a winit::Window and can provide the necessary dimensions and hidpi factor for converting winit::Events to carbide::event::Input, as well as set the mouse cursor.