From eb56278e11e5421dfde95b25600b7f8673df1f89 Mon Sep 17 00:00:00 2001 From: IchorDev <15670465+ichordev@users.noreply.github.com> Date: Wed, 28 Jun 2023 13:26:47 +0700 Subject: [PATCH] Corrected SDL_CONTROLLER_BUTTON_MAX from before 2.0.14 --- source/sdl/gamecontroller.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/sdl/gamecontroller.d b/source/sdl/gamecontroller.d index 5ffadde..ba84a21 100644 --- a/source/sdl/gamecontroller.d +++ b/source/sdl/gamecontroller.d @@ -111,7 +111,7 @@ enum: SDL_GameControllerButton{ } else enum: SDL_GameControllerButton{ - SDL_CONTROLLER_BUTTON_MAX = 16, + SDL_CONTROLLER_BUTTON_MAX = 15, } static if(sdlSupport >= SDLSupport.v2_0_2){