Struct ark_api::applet::GamepadButtonInput
source · [−]pub struct GamepadButtonInput {
pub button: GamepadButton,
pub is_pressed: bool,
}
Expand description
Represents a key press or a text input event. Text is handled separately due to unicode, multi-key accents etc which you don’t want to simulate manually.
Fields
Which gamepad button was pressed or released
is_pressed: bool
True = pressed, false = released
Trait Implementations
sourceimpl Clone for GamepadButtonInput
impl Clone for GamepadButtonInput
sourcefn clone(&self) -> GamepadButtonInput
fn clone(&self) -> GamepadButtonInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for GamepadButtonInput
impl Debug for GamepadButtonInput
impl Copy for GamepadButtonInput
Auto Trait Implementations
impl RefUnwindSafe for GamepadButtonInput
impl Send for GamepadButtonInput
impl Sync for GamepadButtonInput
impl Unpin for GamepadButtonInput
impl UnwindSafe for GamepadButtonInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more