[−][src]Trait joycon_rs::joycon::InputReportMode
Associated Types
type Report: 'static + Send + TryFrom<[u8; 362], Error = JoyConError>
type ArgsType: 'static + Send + Copy + AsRef<[u8]>
Associated Constants
const SUB_COMMAND: SubCommand
const ARGS: Self::ArgsType
Required methods
fn new(driver: D) -> JoyConResult<Self>
Set Joy-Con's input report mode and return instance
fn driver(&self) -> &D
Refference of driver.
fn driver_mut(&mut self) -> &mut D
Mutable refference of driver.
fn into_driver(self) -> D
Unwrap.
Provided methods
fn read_input_report(&self) -> JoyConResult<Self::Report>
read Joy-Con's input report
fn read_input_report_timeout(&self, timeout: i32) -> JoyConResult<Self::Report>
- timeout - milli seconds
Implementors
impl<D> InputReportMode<D> for SimpleHIDMode<D> where
D: JoyConDriver,
[src]
D: JoyConDriver,
type Report = SimpleHIDReport
type ArgsType = [u8; 1]
const SUB_COMMAND: SubCommand
[src]
const ARGS: Self::ArgsType
[src]
fn new(driver: D) -> JoyConResult<Self>
[src]
fn driver(&self) -> &D
[src]
fn driver_mut(&mut self) -> &mut D
[src]
fn into_driver(self) -> D
[src]
impl<D> InputReportMode<D> for StandardFullMode<D> where
D: JoyConDriver,
[src]
D: JoyConDriver,