(Android) Override input_key_pressed_func

This commit is contained in:
twinaphex 2012-12-17 20:23:47 +01:00
parent 918052f5ba
commit 6d23abef55

View File

@ -165,7 +165,11 @@ static inline bool input_key_pressed_func(int key)
#define input_poll_func() MAKENAME_INPUT(_input_poll)(driver.input_data)
#define input_input_state_func(retro_keybinds, port, device, index, id) \
MAKENAME_INPUT(_input_state)(driver.input_data, retro_keybinds, port, device, index, id)
#ifdef ANDROID
#define input_key_pressed_func(key) ((g_extern.lifecycle_state & (1ULL << key)) ? true : false)
#else
#define input_key_pressed_func(key) MAKENAME_INPUT(_input_key_pressed)(driver.input_data, key)
#endif
#define input_free_func() MAKENAME_INPUT(_input_free_input)(driver.input_data)
#endif