Debian Codegraph @

Source/Core/InputCommon/ControllerEmu/ControlGroup/MixedTriggers.h

raw symbols SCIP
1 // Copyright 2017 Dolphin Emulator Project
2 // SPDX-License-Identifier: GPL-2.0-or-later
3
4 #pragma once
5
6 #include <string>
7 #include "InputCommon/ControllerEmu/ControlGroup/ControlGroup.h"
8 #include "InputCommon/ControllerEmu/Setting/NumericSetting.h"
9 #include "InputCommon/ControllerInterface/CoreDevice.h"
10
11 namespace ControllerEmu
12 {
13 class MixedTriggers : public ControlGroup
14 {
15 public:
16 explicit MixedTriggers(const std::string& name);
17
18 void GetState(u16* digital, const u16* bitmasks, ControlState* analog,
19 bool adjusted = true) const;
20 void GetState(u16* digital, const u16* bitmasks, ControlState* analog,
21 const InputOverrideFunction& override_func, bool adjusted = true) const;
22
23 ControlState GetDeadzone() const;
24 ControlState GetThreshold() const;
25
26 size_t GetTriggerCount() const;
27
28 private:
29 SettingValue<double> m_threshold_setting;
30 SettingValue<double> m_deadzone_setting;
31 };
32 } // namespace ControllerEmu