fn reset(&mut self) -> JoyConResult<()> {
        // disable IMU (6-Axis sensor)
        self.send_sub_command(SubCommand::EnableIMU, &[0x01])?;
        // disable vibration
        self.send_sub_command(SubCommand::EnableVibration, &[0x01])?;

        Ok(())
    }
/// Initialize Joy-Con's status
Initialize Joy-Con's status
Initialize Joy - Con ' s status
fn reset(&mut self) -> JoyConResult<()> {
        // disable IMU (6-Axis sensor)
        self.send_sub_command(SubCommand::EnableIMU, &[0x01])?;
        // disable vibration
        self.send_sub_command(SubCommand::EnableVibration, &[0x01])?;
        Ok(())
    }
fn reset ( & mut self ) -> JoyConResult < ( ) > { // disable IMU (6-Axis sensor) self . send_sub_command ( SubCommand :: EnableIMU , & [ 0x01 ] ) ? ; // disable vibration self . send_sub_command ( SubCommand :: EnableVibration , & [ 0x01 ] ) ? ; Ok ( ( ) ) }
Initialize Joy-Con's status
Initialize Joy - Con ' s status
&mut self
&mut self