Skip to content

Commit

Permalink
Fixed build warning
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Nov 16, 2020
1 parent 71e32f5 commit 7bbea0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/joystick/SDL_joystick.c
Expand Up @@ -2471,7 +2471,7 @@ int SDL_PrivateJoystickTouchpad(SDL_Joystick *joystick, int touchpad, int finger
finger_info = &touchpad_info->fingers[finger];

if (!state) {
if (!x && !y) {
if (x == 0.0f && y == 0.0f) {
x = finger_info->x;
y = finger_info->y;
}
Expand Down

0 comments on commit 7bbea0b

Please sign in to comment.