mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 16:19:28 +01:00
FreeLookManager: check for __APPLE__ with defined()
Previously this was treating the identifier as if it were always defined by default
This commit is contained in:
parent
f2292467ad
commit
3c64d030c5
@ -160,7 +160,7 @@ void FreeLookController::LoadDefaults(const ControllerInterface& ciface)
|
|||||||
"if(`Click 3`,`RelativeMouse Y-` * 0.10, 0)");
|
"if(`Click 3`,`RelativeMouse Y-` * 0.10, 0)");
|
||||||
m_rotation_gyro->SetControlExpression(GyroButtons::PitchDown,
|
m_rotation_gyro->SetControlExpression(GyroButtons::PitchDown,
|
||||||
"if(`Click 3`,`RelativeMouse Y+` * 0.10, 0)");
|
"if(`Click 3`,`RelativeMouse Y+` * 0.10, 0)");
|
||||||
#elif __APPLE__
|
#elif defined(__APPLE__)
|
||||||
m_rotation_gyro->SetControlExpression(GyroButtons::PitchUp,
|
m_rotation_gyro->SetControlExpression(GyroButtons::PitchUp,
|
||||||
"if(`Left Click`,`RelativeMouse Y-` * 0.10, 0)");
|
"if(`Left Click`,`RelativeMouse Y-` * 0.10, 0)");
|
||||||
m_rotation_gyro->SetControlExpression(GyroButtons::PitchDown,
|
m_rotation_gyro->SetControlExpression(GyroButtons::PitchDown,
|
||||||
@ -191,7 +191,7 @@ void FreeLookController::LoadDefaults(const ControllerInterface& ciface)
|
|||||||
"if(`Click 3`,`RelativeMouse X-` * 0.10, 0)");
|
"if(`Click 3`,`RelativeMouse X-` * 0.10, 0)");
|
||||||
m_rotation_gyro->SetControlExpression(GyroButtons::YawRight,
|
m_rotation_gyro->SetControlExpression(GyroButtons::YawRight,
|
||||||
"if(`Click 3`,`RelativeMouse X+` * 0.10, 0)");
|
"if(`Click 3`,`RelativeMouse X+` * 0.10, 0)");
|
||||||
#elif __APPLE__
|
#elif defined(__APPLE__)
|
||||||
m_rotation_gyro->SetControlExpression(GyroButtons::YawLeft,
|
m_rotation_gyro->SetControlExpression(GyroButtons::YawLeft,
|
||||||
"if(`Right Click`,`RelativeMouse X-` * 0.10, 0)");
|
"if(`Right Click`,`RelativeMouse X-` * 0.10, 0)");
|
||||||
m_rotation_gyro->SetControlExpression(GyroButtons::YawRight,
|
m_rotation_gyro->SetControlExpression(GyroButtons::YawRight,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user