From 8660efe2dc3f26243809e410ce7dc0cce44fb3dc Mon Sep 17 00:00:00 2001 From: Rosalie Wanders Date: Tue, 30 Apr 2024 13:30:55 +0200 Subject: [PATCH] RMG-Input: fix ci build failure --- Source/RMG-Input/UserInterface/OptionsDialog.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/RMG-Input/UserInterface/OptionsDialog.cpp b/Source/RMG-Input/UserInterface/OptionsDialog.cpp index 55515be6c..240bf79fd 100644 --- a/Source/RMG-Input/UserInterface/OptionsDialog.cpp +++ b/Source/RMG-Input/UserInterface/OptionsDialog.cpp @@ -118,6 +118,7 @@ void OptionsDialog::on_changeGameboySaveButton_clicked() void OptionsDialog::on_testRumbleButton_clicked() { +#if SDL_VERSION_ATLEAST(2,0,18) if ((this->currentJoystick != nullptr && SDL_JoystickHasRumble(this->currentJoystick) != SDL_TRUE) || (this->currentController != nullptr && SDL_GameControllerHasRumble(this->currentController) != SDL_TRUE)) { @@ -129,6 +130,7 @@ void OptionsDialog::on_testRumbleButton_clicked() msgBox.exec(); return; } +#endif if (this->currentJoystick != nullptr) {