From 9979bab20b95e722a7a207fc1d66c92aa27b6985 Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Thu, 30 Apr 2015 21:45:29 +0200 Subject: [PATCH] Android: Deactivated debug log messages on joystick device events. --- src/joystick/android/SDL_sysjoystick.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/joystick/android/SDL_sysjoystick.c b/src/joystick/android/SDL_sysjoystick.c index bd67d5e6d..722b6062f 100644 --- a/src/joystick/android/SDL_sysjoystick.c +++ b/src/joystick/android/SDL_sysjoystick.c @@ -311,7 +311,9 @@ Android_AddJoystick(int device_id, const char *name, SDL_bool is_accelerometer, } #endif /* !SDL_EVENTS_DISABLED */ +#ifdef DEBUG_JOYSTICK SDL_Log("Added joystick %s with device_id %d", name, device_id); +#endif return numjoysticks; } @@ -368,7 +370,9 @@ Android_RemoveJoystick(int device_id) } #endif /* !SDL_EVENTS_DISABLED */ +#ifdef DEBUG_JOYSTICK SDL_Log("Removed joystick with device_id %d", device_id); +#endif SDL_free(item->name); SDL_free(item);