diff --git a/src/BizHawk.Bizware.Input/SDL2/SDL2Gamepad.cs b/src/BizHawk.Bizware.Input/SDL2/SDL2Gamepad.cs index 73bab822ab..02550ed279 100644 --- a/src/BizHawk.Bizware.Input/SDL2/SDL2Gamepad.cs +++ b/src/BizHawk.Bizware.Input/SDL2/SDL2Gamepad.cs @@ -108,11 +108,11 @@ namespace BizHawk.Bizware.Input private List<(string ButtonName, Func GetIsPressed)> CreateGameControllerButtonGetters() { - List<(string ButtonName, Func GetIsPressed)> buttonGetters = new(); + List<(string ButtonName, Func GetIsPressed)> buttonGetters = [ ]; - const int dzp = 20000; - const int dzn = -20000; - const int dzt = 5000; + const int dzp = (int)(32768 / 2.5); + const int dzn = (int)(-32768 / 2.5); + const int dzt = (int)(32768 / 6.5); // buttons buttonGetters.Add(("A", () => SDL_GameControllerGetButton(Opaque, SDL_GameControllerButton.SDL_CONTROLLER_BUTTON_A) == 1)); @@ -160,8 +160,8 @@ namespace BizHawk.Bizware.Input { List<(string ButtonName, Func GetIsPressed)> buttonGetters = new(); - const float dzp = 20000; - const float dzn = -20000; + const float dzp = (int)(32768 / 2.5); + const float dzn = (int)(-32768 / 2.5); // axes buttonGetters.Add(("X+", () => SDL_JoystickGetAxis(Opaque, 0) >= dzp));