5 #include <gainput/gainput.h> 7 #if defined(GAINPUT_PLATFORM_LINUX) 9 #if defined(GAINPUT_DEBUG) || defined(GAINPUT_DEV) 11 #define GAINPUT_LOG(...) printf(__VA_ARGS__); 14 #elif defined(GAINPUT_PLATFORM_WIN) 16 #if defined(GAINPUT_DEBUG) || defined(GAINPUT_DEV) 19 #define GAINPUT_LOG(...) { char buf[1024]; sprintf(buf, __VA_ARGS__); OutputDebugStringA(buf); } 22 #elif defined(GAINPUT_PLATFORM_ANDROID) 24 #if defined(GAINPUT_DEBUG) || defined(GAINPUT_DEV) 25 #include <android/log.h> 26 #define GAINPUT_LOG(...) ((void)__android_log_print(ANDROID_LOG_INFO, "gainput", __VA_ARGS__)) 29 #elif defined(GAINPUT_PLATFORM_IOS) || defined(GAINPUT_PLATFORM_MAC) || defined(GAINPUT_PLATFORM_TVOS) 31 #define GAINPUT_LOG(...) printf(__VA_ARGS__); 35 #define GAINPUT_LOG(...)