Module converters

Source
Expand description

Helpers for mapping between winit and bevy types

Functionsยง

convert_element_state
Converts a winit::event::ElementState to a Bevy ButtonState
convert_enabled_buttons
Converts a Bevy EnabledButtons to a winit::window::WindowButtons
convert_keyboard_input
Converts a winit::event::KeyEvent and a window Entity to a Bevy KeyboardInput
convert_logical_key
Converts a winit::keyboard::Key to a Bevy bevy_input::keyboard::Key
convert_mouse_button
Converts a winit::event::MouseButton to a Bevy MouseButton
convert_native_key
Converts a winit::keyboard::NativeKey to a Bevy NativeKey
convert_physical_key_code
Converts a winit::keyboard::PhysicalKey to a Bevy KeyCode
convert_physical_native_key_code
Converts a winit::keyboard::NativeKeyCode to a Bevy NativeKeyCode
convert_resize_direction
Converts a Bevy CompassOctant to a winit::window::ResizeDirection
convert_system_cursor_icon
Converts a Bevy SystemCursorIcon to a winit::window::CursorIcon.
convert_touch_input
Converts a winit::event::Touch, winit::dpi::LogicalPosition<f64> and window Entity to a Bevy TouchInput
convert_window_level
Converts a Bevy WindowLevel to a winit::window::WindowLevel
convert_window_theme
Converts a Bevy WindowTheme to a winit::window::Theme
convert_winit_theme
Converts a winit::window::Theme to a Bevy WindowTheme