mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 13:27:45 -07:00
WiimoteEmu: Set sensible defaults for IR Object expressions.
This commit is contained in:
parent
617fcc3cf8
commit
f6f435e624
@ -7,6 +7,19 @@ Buttons/2 = `2`
|
||||
Buttons/- = `-`
|
||||
Buttons/+ = `+`
|
||||
Buttons/Home = `HOME`
|
||||
IRPassthrough/Enabled = False
|
||||
IRPassthrough/Object 1 X = `IR Object 1 X`
|
||||
IRPassthrough/Object 1 Y = `IR Object 1 Y`
|
||||
IRPassthrough/Object 1 Size = `IR Object 1 Size`
|
||||
IRPassthrough/Object 2 X = `IR Object 2 X`
|
||||
IRPassthrough/Object 2 Y = `IR Object 2 Y`
|
||||
IRPassthrough/Object 2 Size = `IR Object 2 Size`
|
||||
IRPassthrough/Object 3 X = `IR Object 3 X`
|
||||
IRPassthrough/Object 3 Y = `IR Object 3 Y`
|
||||
IRPassthrough/Object 3 Size = `IR Object 3 Size`
|
||||
IRPassthrough/Object 4 X = `IR Object 4 X`
|
||||
IRPassthrough/Object 4 Y = `IR Object 4 Y`
|
||||
IRPassthrough/Object 4 Size = `IR Object 4 Size`
|
||||
IMUAccelerometer/Up = `Accel Up`
|
||||
IMUAccelerometer/Down = `Accel Down`
|
||||
IMUAccelerometer/Left = `Accel Left`
|
||||
|
@ -798,6 +798,12 @@ void Wiimote::LoadDefaults(const ControllerInterface& ciface)
|
||||
m_imu_gyroscope->SetControlExpression(3, "`Gyro Roll Right`");
|
||||
m_imu_gyroscope->SetControlExpression(4, "`Gyro Yaw Left`");
|
||||
m_imu_gyroscope->SetControlExpression(5, "`Gyro Yaw Right`");
|
||||
for (int i = 0; i < 4; ++i)
|
||||
{
|
||||
m_ir_passthrough->SetControlExpression(i * 3 + 0, fmt::format("`IR Object {} X`", i + 1));
|
||||
m_ir_passthrough->SetControlExpression(i * 3 + 1, fmt::format("`IR Object {} Y`", i + 1));
|
||||
m_ir_passthrough->SetControlExpression(i * 3 + 2, fmt::format("`IR Object {} Size`", i + 1));
|
||||
}
|
||||
#endif
|
||||
|
||||
// Enable Nunchuk:
|
||||
|
Loading…
Reference in New Issue
Block a user