mirror of
https://github.com/libretro/RetroArch.git
synced 2025-01-21 00:05:30 +00:00
(Android) Define HAVE_ASYNC_POLL for Android (will likely be used for other
mobile platforms as well)
This commit is contained in:
parent
e1d02ba837
commit
ab6135c9d5
@ -51,7 +51,7 @@ ifeq ($(PERF_TEST), 1)
|
||||
LOCAL_CFLAGS += -DPERF_TEST
|
||||
endif
|
||||
|
||||
LOCAL_CFLAGS += -Wall -pthread -Wno-unused-function -O3 -fno-stack-protector -funroll-loops -DNDEBUG -DHAVE_GRIFFIN -DANDROID -DHAVE_DYNAMIC -DHAVE_OPENGL -DHAVE_FBO -DHAVE_OVERLAY -DHAVE_OPENGLES -DHAVE_VID_CONTEXT -DHAVE_OPENGLES2 -DGLSL_DEBUG -DHAVE_GLSL -DWANT_MINIZ -DHAVE_ZLIB -DINLINE=inline -DLSB_FIRST -DHAVE_THREADS -D__LIBRETRO__ -DRARCH_PERFORMANCE_MODE -DPACKAGE_VERSION=\"$(RARCH_VERSION)\" -std=gnu99 -I../../../deps/miniz
|
||||
LOCAL_CFLAGS += -Wall -pthread -Wno-unused-function -O3 -fno-stack-protector -funroll-loops -DNDEBUG -DHAVE_GRIFFIN -DANDROID -DHAVE_DYNAMIC -DHAVE_OPENGL -DHAVE_FBO -DHAVE_ASYNC_POLL -DHAVE_OVERLAY -DHAVE_OPENGLES -DHAVE_VID_CONTEXT -DHAVE_OPENGLES2 -DGLSL_DEBUG -DHAVE_GLSL -DWANT_MINIZ -DHAVE_ZLIB -DINLINE=inline -DLSB_FIRST -DHAVE_THREADS -D__LIBRETRO__ -DRARCH_PERFORMANCE_MODE -DPACKAGE_VERSION=\"$(RARCH_VERSION)\" -std=gnu99 -I../../../deps/miniz
|
||||
|
||||
LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -landroid -lEGL -lGLESv2 $(LOGGER_LDLIBS) -ldl
|
||||
|
||||
|
@ -496,7 +496,9 @@ static inline void input_poll_overlay(void)
|
||||
|
||||
static void input_poll(void)
|
||||
{
|
||||
#ifndef HAVE_ASYNC_POLL
|
||||
input_poll_func();
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_OVERLAY
|
||||
if (driver.overlay) // Poll overlay state
|
||||
@ -1953,9 +1955,11 @@ static bool check_fullscreen(void)
|
||||
uninit_drivers();
|
||||
init_drivers();
|
||||
|
||||
#ifndef HAVE_ASYNC_POLL
|
||||
// Poll input to avoid possibly stale data to corrupt things.
|
||||
if (driver.input)
|
||||
input_poll_func();
|
||||
#endif
|
||||
}
|
||||
|
||||
was_pressed = pressed;
|
||||
@ -2987,7 +2991,9 @@ bool rarch_main_idle_iterate(void)
|
||||
return false;
|
||||
|
||||
do_state_checks();
|
||||
#ifndef HAVE_ASYNC_POLL
|
||||
input_poll();
|
||||
#endif
|
||||
rarch_sleep(10);
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user