Commit 7bbea0bb94b6831e8ff686cdba7ae431c97c82e8

Sam Lantinga 2020-11-16T15:10:02

Fixed build warning

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/joystick/SDL_joystick.c b/src/joystick/SDL_joystick.c
index 465a38d..f13303f 100644
--- a/src/joystick/SDL_joystick.c
+++ b/src/joystick/SDL_joystick.c
@@ -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;
         }