Enum pix_engine::event::ControllerButton
source · [−]#[non_exhaustive]
pub enum ControllerButton {
Show 22 variants
A,
B,
X,
Y,
Back,
Guide,
Start,
LeftStick,
RightStick,
LeftShoulder,
RightShoulder,
DPadUp,
DPadDown,
DPadLeft,
DPadRight,
Misc1,
Paddle1,
Paddle2,
Paddle3,
Paddle4,
Touchpad,
Unsupported,
}Expand description
A Controller button
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
A
A button.
B
B button.
X
X button.
Y
Y button.
Back
Back button.
Guide
Guide button.
Start
Start button.
LeftStick
Left axis button.
RightStick
Right axis button.
LeftShoulder
Left shoulder button.
RightShoulder
Right shoulder button.
DPadUp
Directional pad up button.
DPadDown
Directional pad down button.
DPadLeft
Directional pad left button.
DPadRight
Directional pad right button.
Misc1
Misc Controller button
- Xbox Series X share button
- PS5 microphone button
- Nintendo Switch Pro capture button
- Amazon Luna microphone button
Paddle1
Xbox Elite paddle P1
Paddle2
Xbox Elite paddle P2
Paddle3
Xbox Elite paddle P3
Paddle4
Xbox Elite paddle P4
Touchpad
PS4/PS5 touchpad button
Unsupported
An unknown/unsupported button
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for ControllerButton
impl Send for ControllerButton
impl Sync for ControllerButton
impl Unpin for ControllerButton
impl UnwindSafe for ControllerButton
Blanket Implementations
Mutably borrows from an owned value. Read more