pub struct DSUFrame {Show 30 fields
pub dpad_left: bool,
pub dpad_down: bool,
pub dpad_right: bool,
pub dpad_up: bool,
pub options: bool,
pub r3: bool,
pub l3: bool,
pub share: bool,
pub y: bool,
pub b: bool,
pub a: bool,
pub x: bool,
pub r1: bool,
pub l1: bool,
pub r2: bool,
pub l2: bool,
pub home: bool,
pub touch: bool,
pub left_stick_x: u8,
pub left_stick_y: u8,
pub right_stick_x: u8,
pub right_stick_y: u8,
pub analog_r2: u8,
pub analog_l2: u8,
pub accel_x: f32,
pub accel_y: f32,
pub accel_z: f32,
pub gyro_x: f32,
pub gyro_y: f32,
pub gyro_z: f32,
}Expand description
DSU frame representing all controller data sent over the CemuHook protocol.
DSU protocol reference can be found here.
Fields§
§dpad_left: bool§dpad_down: bool§dpad_right: bool§dpad_up: bool§options: bool§r3: bool§l3: bool§y: bool§b: bool§a: bool§x: bool§r1: bool§l1: bool§r2: bool§l2: bool§home: bool§touch: bool§left_stick_x: u8§left_stick_y: u8§right_stick_x: u8§right_stick_y: u8§analog_r2: u8§analog_l2: u8§accel_x: f32§accel_y: f32§accel_z: f32§gyro_x: f32§gyro_y: f32§gyro_z: f32Trait Implementations§
Source§impl From<TritonFrame> for DSUFrame
impl From<TritonFrame> for DSUFrame
Source§fn from(value: TritonFrame) -> Self
fn from(value: TritonFrame) -> Self
Converts to this type from the input type.
impl Copy for DSUFrame
impl StructuralPartialEq for DSUFrame
Auto Trait Implementations§
impl Freeze for DSUFrame
impl RefUnwindSafe for DSUFrame
impl Send for DSUFrame
impl Sync for DSUFrame
impl Unpin for DSUFrame
impl UnsafeUnpin for DSUFrame
impl UnwindSafe for DSUFrame
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more