mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-13 00:58:29 +02:00
Cleanup: Use std::abs instead of abs.
This commit is contained in:
@ -310,6 +310,6 @@ ControlState Joystick::Hat::GetState() const
|
||||
if (is_centered)
|
||||
return 0;
|
||||
|
||||
return (abs((int)(m_hat / 4500 - m_direction * 2 + 8) % 8 - 4) > 2);
|
||||
return (std::abs(int(m_hat / 4500 - m_direction * 2 + 8) % 8 - 4) > 2);
|
||||
}
|
||||
} // namespace ciface::DInput
|
||||
|
Reference in New Issue
Block a user