Fixed build warning
This commit is contained in:
parent
71e32f5e1b
commit
7bbea0bb94
1 changed files with 1 additions and 1 deletions
|
@ -2471,7 +2471,7 @@ int SDL_PrivateJoystickTouchpad(SDL_Joystick *joystick, int touchpad, int finger
|
||||||
finger_info = &touchpad_info->fingers[finger];
|
finger_info = &touchpad_info->fingers[finger];
|
||||||
|
|
||||||
if (!state) {
|
if (!state) {
|
||||||
if (!x && !y) {
|
if (x == 0.0f && y == 0.0f) {
|
||||||
x = finger_info->x;
|
x = finger_info->x;
|
||||||
y = finger_info->y;
|
y = finger_info->y;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue