mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
Toggle and Switches for upward/sideway WiimoteEmu
This commit is contained in:
parent
52af0770c3
commit
3266bf052a
4 changed files with 88 additions and 3 deletions
|
@ -217,6 +217,22 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
class ModifySettingsButton : public Buttons
|
||||
{
|
||||
public:
|
||||
ModifySettingsButton(std::string button_name);
|
||||
void AddInput(std::string button_name, bool toggle = false);
|
||||
|
||||
void GetState();
|
||||
|
||||
const std::vector<bool>& isSettingToggled() const { return associated_settings_toggle; }
|
||||
const std::vector<bool>& getSettingsModifier() const { return associated_settings; }
|
||||
private:
|
||||
std::vector<bool> threshold_exceeded; // internal calculation (if "state" was above threshold)
|
||||
std::vector<bool> associated_settings_toggle; // is setting toggled or hold?
|
||||
std::vector<bool> associated_settings; // result
|
||||
};
|
||||
|
||||
class MixedTriggers : public ControlGroup
|
||||
{
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue