#[repr(C)]
pub union InputEvent {
pub type_: byte,
pub key: KeyInput,
pub motion: MouseMotionEvent,
pub button: MouseButtonEvent,
/* private fields */
}Expand description
@ingroup display \brief Union of all input types.
A union that is used by the callback function get_input_key_hook, to collect input data. At the moment, it is meant to collect only keyboard inputs. In the future this may be used to support mouse inputs as well.
Fields§
§type_: byte§key: KeyInput§motion: MouseMotionEventTrait Implementations§
Source§impl Clone for InputEvent
impl Clone for InputEvent
Source§fn clone(&self) -> InputEvent
fn clone(&self) -> InputEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for InputEvent
impl Default for InputEvent
impl Copy for InputEvent
Auto Trait Implementations§
impl Freeze for InputEvent
impl RefUnwindSafe for InputEvent
impl Send for InputEvent
impl Sync for InputEvent
impl Unpin for InputEvent
impl UnwindSafe for InputEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more