Trait pscontroller_rs::HasStandardButtons[][src]

pub trait HasStandardButtons {
    fn buttons(&self) -> GamepadButtons;
}

Many controllers have the same set of buttons (Square, Circle, L3, R1, etc). The devices that do have these buttons implement this trait. Depite the original Controller not having L3 and R3, they are brought out regardless and just considered unpressable.

Required Methods

This does require a clone operation of the bytes inside the controller. To save yourself the copy, you can access the button data directly via buttons

Implementors