mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-16 12:58:33 +02:00
InputCommon: Add "Dead Zone" setting to raw gyro inputs.
This commit is contained in:
@ -9,6 +9,7 @@
|
||||
|
||||
#include "Common/Matrix.h"
|
||||
#include "InputCommon/ControllerEmu/ControlGroup/ControlGroup.h"
|
||||
#include "InputCommon/ControllerEmu/Setting/NumericSetting.h"
|
||||
|
||||
namespace ControllerEmu
|
||||
{
|
||||
@ -19,6 +20,13 @@ public:
|
||||
|
||||
IMUGyroscope(std::string name, std::string ui_name);
|
||||
|
||||
StateData GetRawState() const;
|
||||
std::optional<StateData> GetState() const;
|
||||
|
||||
// Value is in rad/s.
|
||||
ControlState GetDeadzone() const;
|
||||
|
||||
private:
|
||||
SettingValue<double> m_deadzone_setting;
|
||||
};
|
||||
} // namespace ControllerEmu
|
||||
|
Reference in New Issue
Block a user