Permalink
Browse files

HW/WiimoteEmu: Make "Upright / Sideways Wii Remote" mutually exclusive

  • Loading branch information...
spycrab committed Jul 2, 2018
1 parent c7c93a8 commit 3e2e8136072f4c58dae12dc569f7cd4cf627ee8b
Showing with 8 additions and 7 deletions.
  1. +8 −7 Source/Core/Core/HW/WiimoteEmu/WiimoteEmu.cpp
@@ -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(

0 comments on commit 3e2e813

Please sign in to comment.