Struct pscontroller_rs::classic::GamepadButtons [−][src]
#[repr(C)]pub struct GamepadButtons { /* fields omitted */ }
The digital buttons of the gamepad
Methods
impl GamepadButtons
[src]
impl GamepadButtons
A collection of helper functions to take the button bitfield and make them more ergonomic to use.
pub fn select(&self) -> bool
[src]
pub fn select(&self) -> bool
A button on the controller
pub fn l3(&self) -> bool
[src]
pub fn l3(&self) -> bool
A button on the controller
pub fn r3(&self) -> bool
[src]
pub fn r3(&self) -> bool
A button on the controller
pub fn start(&self) -> bool
[src]
pub fn start(&self) -> bool
A button on the controller
pub fn up(&self) -> bool
[src]
pub fn up(&self) -> bool
A button on the controller
pub fn right(&self) -> bool
[src]
pub fn right(&self) -> bool
A button on the controller
pub fn down(&self) -> bool
[src]
pub fn down(&self) -> bool
A button on the controller
pub fn left(&self) -> bool
[src]
pub fn left(&self) -> bool
A button on the controller
pub fn l2(&self) -> bool
[src]
pub fn l2(&self) -> bool
A button on the controller
pub fn r2(&self) -> bool
[src]
pub fn r2(&self) -> bool
A button on the controller
pub fn l1(&self) -> bool
[src]
pub fn l1(&self) -> bool
A button on the controller
pub fn r1(&self) -> bool
[src]
pub fn r1(&self) -> bool
A button on the controller
pub fn triangle(&self) -> bool
[src]
pub fn triangle(&self) -> bool
A button on the controller
pub fn circle(&self) -> bool
[src]
pub fn circle(&self) -> bool
A button on the controller
pub fn cross(&self) -> bool
[src]
pub fn cross(&self) -> bool
A button on the controller
pub fn square(&self) -> bool
[src]
pub fn square(&self) -> bool
A button on the controller
pub fn bits(&self) -> u16
[src]
pub fn bits(&self) -> u16
The raw value of the buttons on the controller. Useful for aggregate functions
Trait Implementations
impl Clone for GamepadButtons
[src]
impl Clone for GamepadButtons
fn clone(&self) -> GamepadButtons
[src]
fn clone(&self) -> GamepadButtons
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for GamepadButtons
impl Send for GamepadButtons
impl Sync for GamepadButtons
impl Sync for GamepadButtons