Struct pscontroller_rs::DualShock2 [] [src]

#[repr(C)]
pub struct DualShock2 { pub buttons: GamepadButtons, pub rx: u8, pub ry: u8, pub lx: u8, pub ly: u8, pub pressures: [u8; 8], }

Represents the DualShock 2 controller

Fields

Standard buttons (Cross, Circle, L3, Start, etc)

Right analog stick, left and right

Right analog stick, up and down

Left analog stick, left and right

Left analog stick, up and down

List of possible pressure readings from the buttons Note that these are configurable length

Trait Implementations

impl HasStandardButtons for DualShock2
[src]

[src]

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 Read more

Auto Trait Implementations

impl Send for DualShock2

impl Sync for DualShock2