Enum stick::Event [−][src]
#[non_exhaustive] pub enum Event {}Show 95 variants
Disconnect, Exit(bool), ActionA(bool), ActionB(bool), ActionC(bool), ActionH(bool), ActionV(bool), ActionD(bool), MenuL(bool), MenuR(bool), Joy(bool), Cam(bool), BumperL(bool), BumperR(bool), TriggerL(f64), TriggerR(f64), Up(bool), Down(bool), Left(bool), Right(bool), PovUp(bool), PovDown(bool), PovLeft(bool), PovRight(bool), HatUp(bool), HatDown(bool), HatLeft(bool), HatRight(bool), TrimUp(bool), TrimDown(bool), TrimLeft(bool), TrimRight(bool), MicUp(bool), MicDown(bool), MicLeft(bool), MicRight(bool), JoyX(f64), JoyY(f64), JoyZ(f64), CamX(f64), CamY(f64), CamZ(f64), Slew(f64), Throttle(f64), ThrottleL(f64), ThrottleR(f64), Volume(f64), Wheel(f64), Rudder(f64), Gas(f64), Brake(f64), MicPush(bool), Trigger(bool), Bumper(bool), ActionM(bool), ActionL(bool), ActionR(bool), Pinky(bool), PinkyForward(bool), PinkyBackward(bool), FlapsUp(bool), FlapsDown(bool), BoatForward(bool), BoatBackward(bool), AutopilotPath(bool), AutopilotAlt(bool), EngineMotorL(bool), EngineMotorR(bool), EngineFuelFlowL(bool), EngineFuelFlowR(bool), EngineIgnitionL(bool), EngineIgnitionR(bool), SpeedbrakeBackward(bool), SpeedbrakeForward(bool), ChinaBackward(bool), ChinaForward(bool), Apu(bool), RadarAltimeter(bool), LandingGearSilence(bool), Eac(bool), AutopilotToggle(bool), ThrottleButton(bool), MouseX(f64), MouseY(f64), Mouse(bool), Number(i8, bool), PaddleLeft(bool), PaddleRight(bool), PinkyLeft(bool), PinkyRight(bool), Context(bool), Dpi(bool), ScrollX(f64), ScrollY(f64), Scroll(bool),
Expand description
An event from a Controller
.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Controller unplugged.
Exit / Main / Home / Mode
Tuple Fields of Exit
0: bool
A / 1 / 4 / Circle. Action A (Primary action).
Tuple Fields of ActionA
0: bool
B / 2 / 3 / Cross. Action B (Secondary action).
Tuple Fields of ActionB
0: bool
C. Action C (Tertiary action).
Tuple Fields of ActionC
0: bool
Y / X / Square. Action H (Horizontal action).
Tuple Fields of ActionH
0: bool
X / Y / Triangle. Action V (Vertical action).
Tuple Fields of ActionV
0: bool
Z (in 6-button layout). Action D.
Tuple Fields of ActionD
0: bool
Left Menu / Back / Select / Minus / Stop
Tuple Fields of MenuL
0: bool
Right Menu / Forward / Start / Plus / Play
Tuple Fields of MenuR
0: bool
Thumb Push Button On Main / Left Joystick
Tuple Fields of Joy
0: bool
Thumb Push Button On Camera / Right Joystick
Tuple Fields of Cam
0: bool
Left shoulder button (near button if no trigger)
Tuple Fields of BumperL
0: bool
Right shoulder button (near button if no trigger)
Tuple Fields of BumperR
0: bool
Left Bumper Trigger (far button if no trigger) - between 0.0 and 1.0
Tuple Fields of TriggerL
0: f64
Right Bumper Trigger (far button if no trigger) - between 0.0 and 1.0
Tuple Fields of TriggerR
0: f64
D-Pad Up
Tuple Fields of Up
0: bool
D-Pad Down
Tuple Fields of Down
0: bool
D-Pad Left
Tuple Fields of Left
0: bool
D-Pad Right
Tuple Fields of Right
0: bool
POV/Main Hat Left
Tuple Fields of PovUp
0: bool
POV/Main Hat Down
Tuple Fields of PovDown
0: bool
POV/Main Hat Left
Tuple Fields of PovLeft
0: bool
POV/Main Hat Right
Tuple Fields of PovRight
0: bool
Extra Hat Up
Tuple Fields of HatUp
0: bool
Extra Hat Down
Tuple Fields of HatDown
0: bool
Extra Hat Left
Tuple Fields of HatLeft
0: bool
Extra Hat Right
Tuple Fields of HatRight
0: bool
Trim Hat Up
Tuple Fields of TrimUp
0: bool
Trim Hat Down
Tuple Fields of TrimDown
0: bool
Trim Hat Left
Tuple Fields of TrimLeft
0: bool
Trim Hat Right
Tuple Fields of TrimRight
0: bool
Mic Hat Up
Tuple Fields of MicUp
0: bool
Mic Hat Down
Tuple Fields of MicDown
0: bool
Mic Hat Left
Tuple Fields of MicLeft
0: bool
Mic Hat Right
Tuple Fields of MicRight
0: bool
Main stick horizontal axis (A / D) - between -1.0 and 1.0
Tuple Fields of JoyX
0: f64
Main stick vertical / depth axis (W / S) - between -1.0 and 1.0
Tuple Fields of JoyY
0: f64
Main stick rotation / yaw axis - between -1.0 and 1.0
Tuple Fields of JoyZ
0: f64
Secondary stick X axis (Mouse X Position) - between -1.0 and 1.0
Tuple Fields of CamX
0: f64
Secondary stick Y axis (Mouse Y Position) - between -1.0 and 1.0
Tuple Fields of CamY
0: f64
Secondary stick Z axis - between -1.0 and 1.0
Tuple Fields of CamZ
0: f64
Slew Control - between 0.0 and 1.0
Tuple Fields of Slew
0: f64
Stationary throttle (0.0 is forward, 1.0 is backward)
Tuple Fields of Throttle
0: f64
Left stationary throttle (0.0 is forward, 1.0 is backward)
Tuple Fields of ThrottleL
0: f64
Right stationary throttle (0.0 is forward, 1.0 is backward)
Tuple Fields of ThrottleR
0: f64
Volume axis (0.0 is off, 1.0 is full volume)
Tuple Fields of Volume
0: f64
Steering wheel - between 0.0 and 1.0
Tuple Fields of Wheel
0: f64
Ship rudder - between 0.0 and 1.0
Tuple Fields of Rudder
0: f64
Gas Pedal - between 0.0 and 1.0
Tuple Fields of Gas
0: f64
Brake Pedal - between 0.0 and 1.0
Tuple Fields of Brake
0: f64
Mic Hat Push Button
Tuple Fields of MicPush
0: bool
Flightstick trigger button on the back.
Tuple Fields of Trigger
0: bool
Flightstick Side Bumper Button
Tuple Fields of Bumper
0: bool
Flightstick Top Middle Action Button
Tuple Fields of ActionM
0: bool
Flightstick Top Left Action Button
Tuple Fields of ActionL
0: bool
Flightstick Top Right Action Button
Tuple Fields of ActionR
0: bool
Pinky Button
Tuple Fields of Pinky
0: bool
Pinky three-way switch Forward.
Tuple Fields of PinkyForward
0: bool
Pinky three-way switch Backward.
Tuple Fields of PinkyBackward
0: bool
Flaps three-way switch Forward.
true
- Forward (Up)false
- Neutral (Maneuver)
Tuple Fields of FlapsUp
0: bool
Flaps three-way switch Backward.
true
- Backward (Down)false
- Neutral (Maneuver)
Tuple Fields of FlapsDown
0: bool
Boat three-way switch Forward.
Tuple Fields of BoatForward
0: bool
Boat three-way switch Backward.
Tuple Fields of BoatBackward
0: bool
Autopilot three-way switch Forward.
true
- Forward (Path)false
- Neutral (Altitude / Heading)
Tuple Fields of AutopilotPath
0: bool
Autopilot three-way switch Backward.
true
- Backward (Alt)false
- Neutral (Altitude / Heading)
Tuple Fields of AutopilotAlt
0: bool
Left Engine Operate three-way switch Backward.
true
- Backward (Motor)false
- Neutral (Normal)
Tuple Fields of EngineMotorL
0: bool
Right Engine Operate three-way switch Backward.
true
- Backward (Motor)false
- Neutral (Normal)
Tuple Fields of EngineMotorR
0: bool
Engine Fuel Flow Left two-way switch
true
- Normalfalse
- Override
Tuple Fields of EngineFuelFlowL
0: bool
Engine Fuel Flow Right two-way switch
true
- Normalfalse
- Override
Tuple Fields of EngineFuelFlowR
0: bool
Left Engine Operate three-way switch Forward.
true
- Forward (Ignition)false
- Neutral (Normal)
Tuple Fields of EngineIgnitionL
0: bool
Right Engine Operate three-way switch Forward.
true
- Forward (Ignition)false
- Neutral (Normal)
Tuple Fields of EngineIgnitionR
0: bool
Speedbrake three-way switch Backward.
Tuple Fields of SpeedbrakeBackward
0: bool
Speedbrake three-way switch Forward.
Tuple Fields of SpeedbrakeForward
0: bool
China hat three-way switch Backward.
Tuple Fields of ChinaBackward
0: bool
China hat three-way switch Forward.
Tuple Fields of ChinaForward
0: bool
APU (Auxiliary Power Unit) two-way switch
true
- Startfalse
- Off
Tuple Fields of Apu
0: bool
Radar Altimeter two-way switch (Altitude measurements)
true
- Normalfalse
- Disabled
Tuple Fields of RadarAltimeter
0: bool
Landing Gear Horn Silence Button
Tuple Fields of LandingGearSilence
0: bool
EAC (Enhanced Attitude Control - Autopilot) two-way switch
true
- Armfalse
- Off
Tuple Fields of Eac
0: bool
Autopilot Toggle Button
Tuple Fields of AutopilotToggle
0: bool
Throttle button (Left)
Tuple Fields of ThrottleButton
0: bool
Mouse delta position horizontal - between -1.0 and 1.0
Tuple Fields of MouseX
0: f64
Mouse delta position vertical - between -1.0 and 1.0
Tuple Fields of MouseY
0: f64
Mouse primary button
Tuple Fields of Mouse
0: bool
Numbered or unlabeled programmable action buttons (If unlabelled, prefer numbering from left to right, upper to lower)
Back left grip button (upper if there are two)
Tuple Fields of PaddleLeft
0: bool
Back right grip button (upper if there are two)
Tuple Fields of PaddleRight
0: bool
Left Pinky Button / Back lower right grip button
Tuple Fields of PinkyLeft
0: bool
Right Pinky Button / Back lower left grip button
Tuple Fields of PinkyRight
0: bool
Context Menu Button on a mouse (Right Click)
Tuple Fields of Context
0: bool
DPI Button on a mouse
Tuple Fields of Dpi
0: bool
Scroll Wheel X on a mouse - between -1.0 and 1.0
Tuple Fields of ScrollX
0: f64
Scroll Wheel Y on a mouse - between -1.0 and 1.0
Tuple Fields of ScrollY
0: f64
Scroll Button on a mouse
Tuple Fields of Scroll
0: bool
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Event
impl UnwindSafe for Event
Blanket Implementations
Mutably borrows from an owned value. Read more