2017-02-09 03:15:43 +00:00
|
|
|
// Copyright 2017 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include "InputCommon/ControllerEmu/ControlGroup/ControlGroup.h"
|
2019-03-27 00:31:03 +00:00
|
|
|
#include "InputCommon/ControllerEmu/Setting/NumericSetting.h"
|
2017-04-04 19:37:31 +00:00
|
|
|
#include "InputCommon/ControllerInterface/Device.h"
|
2017-02-09 03:15:43 +00:00
|
|
|
|
|
|
|
namespace ControllerEmu
|
|
|
|
{
|
|
|
|
class MixedTriggers : public ControlGroup
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
explicit MixedTriggers(const std::string& name);
|
|
|
|
|
2018-12-30 16:52:45 +00:00
|
|
|
void GetState(u16* digital, const u16* bitmasks, ControlState* analog,
|
|
|
|
bool adjusted = true) const;
|
2018-12-29 19:56:35 +00:00
|
|
|
|
|
|
|
ControlState GetDeadzone() const;
|
|
|
|
ControlState GetThreshold() const;
|
2018-12-30 16:52:45 +00:00
|
|
|
|
2020-02-24 02:00:44 +00:00
|
|
|
size_t GetTriggerCount() const;
|
|
|
|
|
2018-12-30 16:52:45 +00:00
|
|
|
private:
|
2019-03-27 00:31:03 +00:00
|
|
|
SettingValue<double> m_threshold_setting;
|
|
|
|
SettingValue<double> m_deadzone_setting;
|
2017-02-09 03:15:43 +00:00
|
|
|
};
|
|
|
|
} // namespace ControllerEmu
|