[][src]Union libeyelink_sys::InputEvent

#[repr(C)]pub union InputEvent {
    pub type_: byte,
    pub key: KeyInput,
    pub motion: MouseMotionEvent,
    pub button: MouseButtonEvent,
    // some fields omitted
}

@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_: bytekey: KeyInputmotion: MouseMotionEventbutton: MouseButtonEvent

Trait Implementations

impl Clone for InputEvent[src]

impl Copy for InputEvent[src]

impl Default for InputEvent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.