Skip to content

Commit

Permalink
RMG-Input: fix ci build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosalie241 committed Apr 30, 2024
1 parent a471607 commit 8660efe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/RMG-Input/UserInterface/OptionsDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand All @@ -129,6 +130,7 @@ void OptionsDialog::on_testRumbleButton_clicked()
msgBox.exec();
return;
}
#endif

if (this->currentJoystick != nullptr)
{
Expand Down

0 comments on commit 8660efe

Please sign in to comment.