#[repr(C)]pub struct GamepadButtonInput {
pub button: GamepadButton,
pub is_pressed: bool,
pub _pad: [u8; 3],
}
Fields§
Which gamepad button was pressed or released
is_pressed: bool
True = pressed, false = released
_pad: [u8; 3]
Trait Implementations§
Source§impl CheckedBitPattern for GamepadButtonInput
impl CheckedBitPattern for GamepadButtonInput
Source§type Bits = GamepadButtonInputBits
type Bits = GamepadButtonInputBits
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(bits: &GamepadButtonInputBits) -> bool
fn is_valid_bit_pattern(bits: &GamepadButtonInputBits) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.Source§impl Clone for GamepadButtonInput
impl Clone for GamepadButtonInput
Source§fn clone(&self) -> GamepadButtonInput
fn clone(&self) -> GamepadButtonInput
Returns a duplicate 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 Debug for GamepadButtonInput
impl Debug for GamepadButtonInput
Source§impl PartialEq for GamepadButtonInput
impl PartialEq for GamepadButtonInput
impl Copy for GamepadButtonInput
impl Eq for GamepadButtonInput
impl NoUninit for GamepadButtonInput
impl StructuralPartialEq for GamepadButtonInput
Auto Trait Implementations§
impl Freeze for GamepadButtonInput
impl RefUnwindSafe for GamepadButtonInput
impl Send for GamepadButtonInput
impl Sync for GamepadButtonInput
impl Unpin for GamepadButtonInput
impl UnwindSafe for GamepadButtonInput
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