Enum adi_screen::Input
[−]
[src]
pub enum Input { Redraw, Resize, Back, Resume, Pause, EnterWindow, LeaveWindow, KeyDown(Key), KeyRepeat(Key), KeyUp(Key), Cursor(f32, f32), LeftDown(f32, f32), MiddleDown(f32, f32), RightDown(f32, f32), LeftUp(f32, f32), MiddleUp(f32, f32), RightUp(f32, f32), ScrollUp(f32, f32), ScrollDown(f32, f32), ScrollLeft(f32, f32), ScrollRight(f32, f32), JoystickMove(f32, f32), JoystickPov(f32, f32), JoystickThrottle(f32), JoystickButtonDown(Button), JoystickButtonUp(Button), }
Input represents user input.
Variants
Redraw
Resize
Back
Resume
Pause
EnterWindow
LeaveWindow
KeyDown(Key)
KeyRepeat(Key)
KeyUp(Key)
Cursor(f32, f32)
LeftDown(f32, f32)
MiddleDown(f32, f32)
RightDown(f32, f32)
LeftUp(f32, f32)
MiddleUp(f32, f32)
RightUp(f32, f32)
ScrollUp(f32, f32)
ScrollDown(f32, f32)
ScrollLeft(f32, f32)
ScrollRight(f32, f32)
JoystickMove(f32, f32)
JoystickPov(f32, f32)
JoystickThrottle(f32)
JoystickButtonDown(Button)
JoystickButtonUp(Button)
Methods
impl Input
[src]
fn get(window: &mut Window) -> Input
fn poll_events(window: &mut Window)
Trait Implementations
impl PartialEq for Input
[src]
fn eq(&self, __arg_0: &Input) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Input) -> bool
This method tests for !=
.
impl Copy for Input
[src]
impl Clone for Input
[src]
fn clone(&self) -> Input
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more