mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
(Android) Override input_key_pressed_func
This commit is contained in:
parent
918052f5ba
commit
6d23abef55
@ -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_poll_func() MAKENAME_INPUT(_input_poll)(driver.input_data)
|
||||||
#define input_input_state_func(retro_keybinds, port, device, index, id) \
|
#define input_input_state_func(retro_keybinds, port, device, index, id) \
|
||||||
MAKENAME_INPUT(_input_state)(driver.input_data, 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)
|
#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)
|
#define input_free_func() MAKENAME_INPUT(_input_free_input)(driver.input_data)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user