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