From 9a45e9d3b56306e8df69fa5cc6cea1bc8bcf4eeb Mon Sep 17 00:00:00 2001 From: kiroukou Date: Thu, 1 Dec 2016 13:00:24 +0100 Subject: [PATCH] Fix the IOS Accelerometer which wasn't fully linked to lime The SDL implementation of IOS Accelerometer was correct. Wrapped around the Joystick API for commodity I guess, but working. The problem was in fact that LIME didn't linked the joystick itself... After few long hours, the obvious was found, the define was wrong. IPHONE instead of IOS did fix the problem. --- project/src/backend/sdl/SDLJoystick.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project/src/backend/sdl/SDLJoystick.cpp b/project/src/backend/sdl/SDLJoystick.cpp index fe2dc0316..4667c8b4c 100644 --- a/project/src/backend/sdl/SDLJoystick.cpp +++ b/project/src/backend/sdl/SDLJoystick.cpp @@ -55,7 +55,7 @@ namespace lime { void SDLJoystick::Init () { - #if defined(IOS) || defined(ANDROID) || defined(TVOS) + #if defined(IPHONE) || defined(ANDROID) || defined(TVOS) for (int i = 0; i < SDL_NumJoysticks (); i++) { if (strstr (SDL_JoystickNameForIndex (i), "Accelerometer")) { @@ -122,4 +122,4 @@ namespace lime { } -} \ No newline at end of file +}