From 8f78f5bb946e412d3784099fc7bd40457473712a Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 2 Feb 2017 16:56:02 -0800 Subject: [PATCH] Fixed build on Apple TV --- src/joystick/iphoneos/SDL_sysjoystick.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/joystick/iphoneos/SDL_sysjoystick.m b/src/joystick/iphoneos/SDL_sysjoystick.m index ba313e47d..212007447 100644 --- a/src/joystick/iphoneos/SDL_sysjoystick.m +++ b/src/joystick/iphoneos/SDL_sysjoystick.m @@ -553,7 +553,7 @@ SDL_SYS_MFIJoystickUpdate(SDL_Joystick * joystick) }; for (i = 0; i < SDL_arraysize(axes); i++) { - updateplayerindex |= (joystick->axes[i] != axes[i]); + updateplayerindex |= (joystick->axes[i].value != axes[i]); SDL_PrivateJoystickAxis(joystick, i, axes[i]); }