HW/WiimoteEmu: Make "Upright / Sideways Wii Remote" mutually exclusive
This commit is contained in:
parent
c7c93a8e80
commit
3e2e813607
|
@ -49,7 +49,7 @@ namespace
|
|||
// :)
|
||||
auto const TAU = 6.28318530717958647692;
|
||||
auto const PI = TAU / 2.0;
|
||||
}
|
||||
} // namespace
|
||||
|
||||
namespace WiimoteEmu
|
||||
{
|
||||
|
@ -308,12 +308,13 @@ Wiimote::Wiimote(const unsigned int index) : m_index(index), ir_sin(0), ir_cos(1
|
|||
|
||||
// options
|
||||
groups.emplace_back(m_options = new ControllerEmu::ControlGroup(_trans("Options")));
|
||||
m_options->boolean_settings.emplace_back(
|
||||
m_sideways_setting = new ControllerEmu::BooleanSetting("Sideways Wiimote",
|
||||
_trans("Sideways Wii Remote"), false));
|
||||
m_options->boolean_settings.emplace_back(
|
||||
m_upright_setting = new ControllerEmu::BooleanSetting("Upright Wiimote",
|
||||
_trans("Upright Wii Remote"), false));
|
||||
m_options->boolean_settings.emplace_back(m_upright_setting = new ControllerEmu::BooleanSetting(
|
||||
"Upright Wiimote", _trans("Upright Wii Remote"),
|
||||
true, ControllerEmu::SettingType::NORMAL, true));
|
||||
m_options->boolean_settings.emplace_back(m_sideways_setting = new ControllerEmu::BooleanSetting(
|
||||
"Sideways Wiimote", _trans("Sideways Wii Remote"),
|
||||
false, ControllerEmu::SettingType::NORMAL, true));
|
||||
|
||||
m_options->numeric_settings.emplace_back(
|
||||
std::make_unique<ControllerEmu::NumericSetting>(_trans("Speaker Pan"), 0, -127, 127));
|
||||
m_options->numeric_settings.emplace_back(
|
||||
|
|
Loading…
Reference in New Issue