mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 13:20:30 +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_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
|
||||
|
Loading…
x
Reference in New Issue
Block a user