pub enum NativeButtonInput {
Show 40 variants
Character(char),
UpArrow,
DownArrow,
LeftArrow,
RightArrow,
Esc,
Enter,
Backspace,
Space,
LeftShift,
RightShift,
LeftControl,
RightControl,
LeftMeta,
RightMeta,
LeftAlt,
RightAlt,
CapsLock,
Kana,
Alphabet,
ZenkakuHankaku,
FunctionKey(u8),
ButtonA,
ButtonB,
ButtonC,
ButtonD,
ButtonX,
ButtonY,
ButtonStart,
ButtonSelect,
ButtonMeta,
ButtonL,
ButtonR,
Stick(u32),
Mouse(u32),
Touch(u32),
POVLeft,
POVRight,
POVUp,
POVDown,
}
Expand description
Digital(Buttons) Input
Variants§
Character(char)
Keyboard Character(Case insensitive, cradles must pass with uppercase characters)
UpArrow
DownArrow
LeftArrow
RightArrow
Esc
Enter
Backspace
Space
LeftShift
RightShift
LeftControl
RightControl
LeftMeta
RightMeta
LeftAlt
RightAlt
CapsLock
Kana
Alphabet
ZenkakuHankaku
FunctionKey(u8)
ButtonA
DUALSHOCK equivalent is ○
ButtonB
DUALSHOCK equivalent is ×
ButtonC
ButtonD
ButtonX
DUALSHOCK equivalent is △
ButtonY
DUALSHOCK equivalent is □
ButtonStart
ButtonSelect
ButtonMeta
ButtonL
DUALSHOCK equivalent is L1(L2 will be simulated as NativeAnalogInput::LeftTrigger(1.0))
ButtonR
DUALSHOCK equivalent is R1(R2 will be simulated as NativeAnalogInput::RightTrigger(1.0))
Stick(u32)
Stick Index
Mouse(u32)
Mouse Button(0 = Left, 1 = Right, 2 = Center, 3.. = Other)
Touch(u32)
Touch with ID
POVLeft
POVRight
POVUp
POVDown
Trait Implementations§
Source§impl Clone for NativeButtonInput
impl Clone for NativeButtonInput
Source§fn clone(&self) -> NativeButtonInput
fn clone(&self) -> NativeButtonInput
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Hash for NativeButtonInput
impl Hash for NativeButtonInput
Source§impl PartialEq for NativeButtonInput
impl PartialEq for NativeButtonInput
impl Copy for NativeButtonInput
impl Eq for NativeButtonInput
impl StructuralPartialEq for NativeButtonInput
Auto Trait Implementations§
impl Freeze for NativeButtonInput
impl RefUnwindSafe for NativeButtonInput
impl Send for NativeButtonInput
impl Sync for NativeButtonInput
impl Unpin for NativeButtonInput
impl UnwindSafe for NativeButtonInput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more