diff --git a/Data/Sys/Profiles/Wiimote/Wii Remote with MotionPlus Pointing.ini b/Data/Sys/Profiles/Wiimote/Wii Remote with MotionPlus Pointing.ini index 408c2ed0b4..e43c6551bd 100644 --- a/Data/Sys/Profiles/Wiimote/Wii Remote with MotionPlus Pointing.ini +++ b/Data/Sys/Profiles/Wiimote/Wii Remote with MotionPlus Pointing.ini @@ -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` diff --git a/Source/Core/Core/HW/WiimoteEmu/WiimoteEmu.cpp b/Source/Core/Core/HW/WiimoteEmu/WiimoteEmu.cpp index 4c72126f57..a93ad379e8 100644 --- a/Source/Core/Core/HW/WiimoteEmu/WiimoteEmu.cpp +++ b/Source/Core/Core/HW/WiimoteEmu/WiimoteEmu.cpp @@ -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: