mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 04:20:28 +00:00
Move set_default_keybinds upstream (no longer ifdeffed RARCH_CONSOLE)
This commit is contained in:
parent
ece717f2cc
commit
d7130d58f6
@ -520,5 +520,6 @@ const input_driver_t input_android = {
|
||||
android_input_state,
|
||||
android_input_key_pressed,
|
||||
android_input_free_input,
|
||||
NULL,
|
||||
"android_input",
|
||||
};
|
||||
|
2
driver.h
2
driver.h
@ -206,8 +206,8 @@ typedef struct input_driver
|
||||
int16_t (*input_state)(void *data, const struct retro_keybind **retro_keybinds, unsigned port, unsigned device, unsigned index, unsigned id);
|
||||
bool (*key_pressed)(void *data, int key);
|
||||
void (*free)(void *data);
|
||||
#ifdef RARCH_CONSOLE
|
||||
void (*set_default_keybinds)(unsigned device, unsigned port);
|
||||
#ifdef RARCH_CONSOLE
|
||||
void (*set_analog_dpad_mapping)(unsigned device, unsigned map_dpad_enum, unsigned controller_id);
|
||||
#endif
|
||||
const char *ident;
|
||||
|
@ -315,5 +315,6 @@ const input_driver_t input_linuxraw = {
|
||||
linuxraw_input_state,
|
||||
linuxraw_bind_button_pressed,
|
||||
linuxraw_input_free,
|
||||
NULL,
|
||||
"linuxraw"
|
||||
};
|
||||
|
@ -72,8 +72,8 @@ const input_driver_t input_null = {
|
||||
nullinput_input_state,
|
||||
nullinput_input_key_pressed,
|
||||
nullinput_input_free_input,
|
||||
#ifdef RARCH_CONSOLE
|
||||
nullinput_set_default_keybinds,
|
||||
#ifdef RARCH_CONSOLE
|
||||
nullinput_set_analog_dpad_mapping,
|
||||
#endif
|
||||
"null",
|
||||
|
@ -245,6 +245,7 @@ const input_driver_t input_sdl = {
|
||||
sdl_input_state,
|
||||
sdl_bind_button_pressed,
|
||||
sdl_input_free,
|
||||
NULL,
|
||||
"sdl",
|
||||
};
|
||||
|
||||
|
@ -250,6 +250,7 @@ const input_driver_t input_x = {
|
||||
x_input_state,
|
||||
x_bind_button_pressed,
|
||||
x_input_free,
|
||||
NULL,
|
||||
"x"
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user