Enum gilrs::Event
[−]
[src]
pub enum Event { ButtonPressed(Button, NativeEvCode), ButtonReleased(Button, NativeEvCode), AxisChanged(Axis, f32, NativeEvCode), Connected, Disconnected, }
Gamepad event.
Variants
ButtonPressed(Button, NativeEvCode)
Some button on gamepad has been pressed.
ButtonReleased(Button, NativeEvCode)
Previously pressed button has been released.
AxisChanged(Axis, f32, NativeEvCode)
Value of axis has changed. Value can be in range [-1.0, 1.0] for sticks and [0.0, 1.0] for triggers.
Connected
Gamepad has been connected. If gamepad's UUID doesn't match one of disconnected gamepads, newly connected gamepad will get new ID.
Disconnected
Gamepad has been disconnected. Disconnected gamepad will not generate any new events.
Trait Implementations
impl Debug for Event
[src]
impl Clone for Event
[src]
fn clone(&self) -> Event
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