mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-19 01:38:12 +00:00
Fixed build warning
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user