core: hid: Allow to calibrate gyro sensor

This commit is contained in:
Narr the Reg 2023-05-08 11:17:27 -06:00
parent 0b1cffbd9c
commit 63ab5ee887
5 changed files with 43 additions and 1 deletions

View file

@ -688,6 +688,12 @@ void EmulatedController::SetMotionParam(std::size_t index, Common::ParamPackage
ReloadInput();
}
void EmulatedController::StartMotionCalibration() {
for (ControllerMotionInfo& motion : controller.motion_values) {
motion.emulated.Calibrate();
}
}
void EmulatedController::SetButton(const Common::Input::CallbackStatus& callback, std::size_t index,
Common::UUID uuid) {
if (index >= controller.button_values.size()) {