(Android) Blank in input_poll_func() for HAVE_ASYNC_POLL
This commit is contained in:
parent
42fe25b3b7
commit
7b96cf8db3
|
@ -45,7 +45,11 @@
|
|||
#define video_overlay_interface_func(iface) driver.video->overlay_interface(driver.video_data, iface)
|
||||
#define video_free_func() driver.video->free(driver.video_data)
|
||||
#define input_init_func() driver.input->init()
|
||||
#ifdef HAVE_ASYNC_POLL
|
||||
#define input_poll_func()
|
||||
#else
|
||||
#define input_poll_func() driver.input->poll(driver.input_data)
|
||||
#endif
|
||||
#define input_input_state_func(retro_keybinds, port, device, index, id) \
|
||||
driver.input->input_state(driver.input_data, retro_keybinds, port, device, index, id)
|
||||
#define input_free_func() driver.input->free(driver.input_data)
|
||||
|
|
|
@ -496,9 +496,7 @@ 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
|
||||
|
@ -1955,11 +1953,9 @@ 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;
|
||||
|
|
Loading…
Reference in New Issue