Fixed binding D-pad on NES30 controller

Sam Lantinga 2019-12-12 19:07:26 -08:00
parent 9f8009f2e1
commit 4d4e5584ea
1 changed files with 1 additions and 1 deletions

View File

@ -842,7 +842,7 @@ SDL_PrivateJoystickAxis(SDL_Joystick * joystick, Uint8 axis, Sint16 value)
info = &joystick->axes[axis]; info = &joystick->axes[axis];
if (!info->has_initial_value || if (!info->has_initial_value ||
(!info->has_second_value && info->initial_value == -32768 && SDL_abs(value) < (SDL_JOYSTICK_AXIS_MAX / 4))) { (!info->has_second_value && (info->initial_value == -32768 || info->initial_value == 32767) && SDL_abs(value) < (SDL_JOYSTICK_AXIS_MAX / 4))) {
info->initial_value = value; info->initial_value = value;
info->value = value; info->value = value;
info->zero = value; info->zero = value;