|
|
|
|
@ -178,7 +178,8 @@ int Joystick::ToSdlJoyButton(ControllerButton button)
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bool Joystick::IsHatButtonPressed(ControllerButton button) |
|
|
|
|
// NOLINTNEXTLINE(readability-convert-member-functions-to-static): Not static if joystick mappings are defined.
|
|
|
|
|
bool Joystick::IsHatButtonPressed(ControllerButton button) const |
|
|
|
|
{ |
|
|
|
|
switch (button) { |
|
|
|
|
#if defined(JOY_HAT_DPAD_UP_HAT) && defined(JOY_HAT_DPAD_UP) |
|
|
|
|
|