2017-02-09 03:15:43 +00:00
|
|
|
// Copyright 2017 Dolphin Emulator Project
|
2021-07-05 01:22:19 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2017-02-09 03:15:43 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include "InputCommon/ControllerEmu/ControlGroup/ControlGroup.h"
|
2019-03-27 00:31:03 +00:00
|
|
|
#include "InputCommon/ControllerEmu/Setting/NumericSetting.h"
|
2020-09-15 11:34:41 +00:00
|
|
|
#include "InputCommon/ControllerInterface/CoreDevice.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
|