@@ -6126,8 +6126,8 @@ void input_driver_poll(void)
61266126 * sec_joypad = NULL ;
61276127#endif
61286128 bool input_remap_binds_enable = settings -> bools .input_remap_binds_enable ;
6129- bool input_remap_ports_on_button_press
6130- = settings -> bools .input_remap_ports_on_button_press ;
6129+ bool input_assign_ports_on_button_press
6130+ = settings -> bools .input_assign_ports_on_button_press ;
61316131 float input_axis_threshold = settings -> floats .input_axis_threshold ;
61326132 uint8_t max_users = (uint8_t )settings -> uints .input_max_users ;
61336133
@@ -6142,8 +6142,8 @@ void input_driver_poll(void)
61426142 }
61436143
61446144#ifdef HAVE_MENU
6145- input_remap_ports_on_button_press =
6146- input_remap_ports_on_button_press
6145+ input_assign_ports_on_button_press =
6146+ input_assign_ports_on_button_press
61476147 && !(menu_state_get_ptr ()-> flags & MENU_ST_FLAG_ALIVE );
61486148#endif
61496149
@@ -6155,7 +6155,7 @@ void input_driver_poll(void)
61556155 && input_st -> current_driver -> poll )
61566156 input_st -> current_driver -> poll (input_st -> current_data );
61576157
6158- if (input_remap_ports_on_button_press )
6158+ if (input_assign_ports_on_button_press )
61596159 {
61606160 for (i = 0 ; i < max_users ; i ++ )
61616161 {
@@ -6189,7 +6189,7 @@ void input_driver_poll(void)
61896189
61906190 /* If user 0 is not mapped yet, use the port they would be mapped
61916191 * to on overlay button press to get the input_analog_dpad_mode. */
6192- if (!first_user_is_mapped && input_remap_ports_on_button_press )
6192+ if (!first_user_is_mapped && input_assign_ports_on_button_press )
61936193 mapped_port = get_first_free_core_port (settings );
61946194
61956195 switch (input_analog_dpad_mode )
@@ -6220,7 +6220,7 @@ void input_driver_poll(void)
62206220 input_analog_dpad_mode ,
62216221 settings -> floats .input_axis_threshold );
62226222
6223- if (!first_user_is_mapped && input_remap_ports_on_button_press )
6223+ if (!first_user_is_mapped && input_assign_ports_on_button_press )
62246224 {
62256225 if (input_st -> overlay_ptr -> overlay_state .buttons .data [0 ])
62266226 map_user_to_first_free_core_port (0 , settings );
@@ -6875,17 +6875,17 @@ void input_remapping_set_remap_ports_defaults(void)
68756875{
68766876 unsigned i ;
68776877 settings_t * settings = config_get_ptr ();
6878- bool remap_on_button_press = settings -> bools .input_remap_ports_on_button_press ;
6878+ bool assign_ports_on_button_press = settings -> bools .input_assign_ports_on_button_press ;
68796879
68806880 for (i = 0 ; i < MAX_USERS ; i ++ )
68816881 {
68826882 configuration_set_uint (settings ,
68836883 settings -> uints .input_remap_ports [i ],
6884- remap_on_button_press ? MAX_USERS : i );
6884+ assign_ports_on_button_press ? MAX_USERS : i );
68856885
68866886 configuration_set_uint (settings ,
68876887 settings -> uints .input_libretro_device [i ],
6888- remap_on_button_press ? RETRO_DEVICE_NONE : RETRO_DEVICE_JOYPAD );
6888+ assign_ports_on_button_press ? RETRO_DEVICE_NONE : RETRO_DEVICE_JOYPAD );
68896889 }
68906890
68916891 /* Need to call 'input_remapping_update_port_map()'
0 commit comments