wayland: Horizontal wheel values do not need to be inverted

This commit is contained in:
Ethan Lee 2022-01-10 10:07:44 -05:00 committed by GitHub
parent a29d3acc9e
commit 3e1b3bc344
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -585,7 +585,7 @@ pointer_handle_axis_common_v1(struct SDL_WaylandInput *input,
y = 0 - (float)wl_fixed_to_double(value);
break;
case WL_POINTER_AXIS_HORIZONTAL_SCROLL:
x = 0 - (float)wl_fixed_to_double(value);
x = (float)wl_fixed_to_double(value);
y = 0;
break;
default:
@ -629,7 +629,7 @@ pointer_handle_axis_common(struct SDL_WaylandInput *input, SDL_bool discrete,
* processed a discrete axis event before so we ignore it */
break;
}
input->pointer_curr_axis_info.x = 0 - (float)wl_fixed_to_double(value);
input->pointer_curr_axis_info.x = (float)wl_fixed_to_double(value);
break;
}
}