Struct pscontroller_rs::DualShock [] [src]

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

Represents the DualShock 1 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

Trait Implementations

impl HasStandardButtons for DualShock
[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 DualShock

impl Sync for DualShock