Skip to content

Commit

Permalink
Allow input for any dev; hide the option on Switch
Browse files Browse the repository at this point in the history
  • Loading branch information
p-sam committed Aug 1, 2019
1 parent 010c06d commit b8fe1c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/config.c
Expand Up @@ -479,5 +479,6 @@ void config_load(void) {

#ifdef __SWITCH__
config_set_int(CONFIG_GAMEPAD_ENABLED, true);
config_set_int(CONFIG_GAMEPAD_DEVICE, "any");
#endif
}
2 changes: 1 addition & 1 deletion src/menu/options.c
Expand Up @@ -666,11 +666,11 @@ static MenuData* create_options_menu_gamepad(MenuData *parent) {
add_menu_entry(m, "Enable Gamepad/Joystick support", do_nothing,
b = bind_option(CONFIG_GAMEPAD_ENABLED, bind_common_onoff_get, bind_common_onoff_set)
); bind_onoff(b);
#endif

add_menu_entry(m, "Device", do_nothing,
b = bind_gpdevice(CONFIG_GAMEPAD_DEVICE)
); b->dependence = gamepad_enabled_depencence;
#endif

add_menu_separator(m);
add_menu_entry(m, "Customize controls…", enter_options_menu_gamepad_controls, NULL);
Expand Down

0 comments on commit b8fe1c0

Please sign in to comment.