Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
#define NATIVE_APP_GLUE_KEY_EVENTS_DEFAULT_BUF_SIZE 4

#define LOGI(...) \
((void)__android_log_print(ANDROID_LOG_INFO, "threaded_app", __VA_ARGS__))
((void)__android_log_print(ANDROID_LOG_INFO, "android_activity", __VA_ARGS__))
#define LOGE(...) \
((void)__android_log_print(ANDROID_LOG_ERROR, "threaded_app", __VA_ARGS__))
((void)__android_log_print(ANDROID_LOG_ERROR, "android_activity", __VA_ARGS__))
#define LOGW(...) \
((void)__android_log_print(ANDROID_LOG_WARN, "threaded_app", __VA_ARGS__))
((void)__android_log_print(ANDROID_LOG_WARN, "android_activity", __VA_ARGS__))
#define LOGW_ONCE(...) \
do { \
static bool alogw_once##__FILE__##__LINE__##__ = true; \
Expand All @@ -46,7 +46,7 @@
/* For debug builds, always enable the debug traces in this library */
#ifndef NDEBUG
#define LOGV(...) \
((void)__android_log_print(ANDROID_LOG_VERBOSE, "threaded_app", \
((void)__android_log_print(ANDROID_LOG_VERBOSE, "android_activity", \
__VA_ARGS__))
#else
#define LOGV(...) ((void)0)
Expand Down Expand Up @@ -264,7 +264,7 @@ static bool default_key_filter(const GameActivityKeyEvent* event) {

static bool default_motion_filter(const GameActivityMotionEvent* event) {
// Ignore any non-touch events.
return event->source == SOURCE_TOUCHSCREEN;
return event->source & SOURCE_TOUCHSCREEN;
}

// --------------------------------------------------------------------
Expand Down