Trait psvr::command::Command
[−]
[src]
pub trait Command { const ID: u8; fn write_payload(&self, write: &mut Write) -> Result<()>; fn payload_bytes(&self) -> Vec<u8> { ... } }
A command that can be sent to the PSVR.
Associated Constants
Required Methods
fn write_payload(&self, write: &mut Write) -> Result<()>
Provided Methods
fn payload_bytes(&self) -> Vec<u8>
Gets the raw bytes that make up the payload.
Implementors
impl Command for SetPower
impl Command for EnableVrTracking
impl Command for SetVrMode
impl Command for BoxOff
impl Command for SetCinematicConfiguration
impl Command for SetHmdLeds
impl Command for ReadDeviceInfo