ControllerEmu: Implement dead zone setting for triggers.

This commit is contained in:
Jordan Woyak
2018-12-29 13:56:35 -06:00
parent def5c6e573
commit 6a6195f53c
3 changed files with 74 additions and 22 deletions

View File

@ -13,8 +13,17 @@ namespace ControllerEmu
class MixedTriggers : public ControlGroup
{
public:
enum
{
SETTING_THRESHOLD,
SETTING_DEADZONE,
};
explicit MixedTriggers(const std::string& name);
void GetState(u16* digital, const u16* bitmasks, ControlState* analog);
void GetState(u16* digital, const u16* bitmasks, ControlState* analog, bool adjusted = true);
ControlState GetDeadzone() const;
ControlState GetThreshold() const;
};
} // namespace ControllerEmu