Skip to content

Commit

Permalink
Add methods
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiseiYokoyama committed May 29, 2020
1 parent 3bafa60 commit 16dbf27
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/joycon/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,10 @@ impl JoyConDevice {
&self.serial_number
}

pub fn stick_parameters(&self) -> &calibration::stick::StickParameters {
&self.stick_parameters
}

pub fn stick_factory_calibration(&self) -> &calibration::stick::JoyConSticksCalibration {
&self.stick_factory_calibration
}
Expand All @@ -544,6 +548,10 @@ impl JoyConDevice {
&self.stick_user_calibration
}

pub fn imu_offsets(&self) -> &calibration::imu::IMUOffsets {
&self.imu_offsets
}

pub fn imu_factory_calibration(&self) -> &calibration::imu::IMUCalibration {
&self.imu_factory_calibration
}
Expand Down

0 comments on commit 16dbf27

Please sign in to comment.