mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
ControllerEmu: Add support for setting the center of a ReshapableInput
This is useful in far out-of-calibration controllers, such as the Switch Pro controller. This also adds support for configuring the center in the Mapping widget.
This commit is contained in:
@ -97,6 +97,9 @@ public:
|
||||
const CalibrationData& GetCalibrationData() const;
|
||||
void SetCalibrationData(CalibrationData data);
|
||||
|
||||
const ReshapeData& GetCenter() const;
|
||||
void SetCenter(ReshapeData center);
|
||||
|
||||
protected:
|
||||
ReshapeData Reshape(ControlState x, ControlState y, ControlState modifier = 0.0);
|
||||
|
||||
@ -106,6 +109,7 @@ private:
|
||||
|
||||
CalibrationData m_calibration;
|
||||
SettingValue<double> m_deadzone_setting;
|
||||
ReshapeData m_center;
|
||||
};
|
||||
|
||||
} // namespace ControllerEmu
|
||||
|
Reference in New Issue
Block a user