Merge pull request #851 from kiroukou/patch-11
Fix the IOS Accelerometer which wasn't fully linked to lime
This commit is contained in:
@@ -55,7 +55,7 @@ namespace lime {
|
|||||||
|
|
||||||
void SDLJoystick::Init () {
|
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++) {
|
for (int i = 0; i < SDL_NumJoysticks (); i++) {
|
||||||
|
|
||||||
if (strstr (SDL_JoystickNameForIndex (i), "Accelerometer")) {
|
if (strstr (SDL_JoystickNameForIndex (i), "Accelerometer")) {
|
||||||
@@ -122,4 +122,4 @@ namespace lime {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user