mirror of
https://github.com/libretro/RetroArch
synced 2025-02-11 06:40:48 +00:00
Take out RARCH_CONSOLE omission of hats
This commit is contained in:
parent
2e013742bc
commit
8cdef6a5f0
@ -1222,7 +1222,6 @@ static void save_keybind_key(config_file_t *conf, const char *prefix, const char
|
|||||||
config_set_string(conf, key, btn);
|
config_set_string(conf, key, btn);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef RARCH_CONSOLE
|
|
||||||
static void save_keybind_hat(config_file_t *conf, const char *key, const struct retro_keybind *bind)
|
static void save_keybind_hat(config_file_t *conf, const char *key, const struct retro_keybind *bind)
|
||||||
{
|
{
|
||||||
unsigned hat = GET_HAT(bind->joykey);
|
unsigned hat = GET_HAT(bind->joykey);
|
||||||
@ -1254,7 +1253,6 @@ static void save_keybind_hat(config_file_t *conf, const char *key, const struct
|
|||||||
snprintf(config, sizeof(config), "h%u%s", hat, dir);
|
snprintf(config, sizeof(config), "h%u%s", hat, dir);
|
||||||
config_set_string(conf, key, config);
|
config_set_string(conf, key, config);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
static void save_keybind_joykey(config_file_t *conf, const char *prefix, const char *base,
|
static void save_keybind_joykey(config_file_t *conf, const char *prefix, const char *base,
|
||||||
const struct retro_keybind *bind)
|
const struct retro_keybind *bind)
|
||||||
@ -1264,10 +1262,8 @@ static void save_keybind_joykey(config_file_t *conf, const char *prefix, const c
|
|||||||
|
|
||||||
if (bind->joykey == NO_BTN)
|
if (bind->joykey == NO_BTN)
|
||||||
config_set_string(conf, key, "nul");
|
config_set_string(conf, key, "nul");
|
||||||
#ifndef RARCH_CONSOLE // Consoles don't understand hats.
|
|
||||||
else if (GET_HAT_DIR(bind->joykey))
|
else if (GET_HAT_DIR(bind->joykey))
|
||||||
save_keybind_hat(conf, key, bind);
|
save_keybind_hat(conf, key, bind);
|
||||||
#endif
|
|
||||||
else
|
else
|
||||||
config_set_uint64(conf, key, bind->joykey);
|
config_set_uint64(conf, key, bind->joykey);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user