comparison nuklear_ui/blastem_nuklear.c @ 2219:ff700f50541c

Fix duplicated right trigger mapping button in bindings for 8-button Genesis style controllers
author Michael Pavone <pavone@retrodev.com>
date Thu, 01 Sep 2022 22:43:02 -0700
parents ee6d30c56eeb
children dd9d43c67986
comparison
equal deleted inserted replaced
2218:58774a77f2e0 2219:ff700f50541c
1120 SDL_CONTROLLER_BUTTON_RIGHTSHOULDER, 1120 SDL_CONTROLLER_BUTTON_RIGHTSHOULDER,
1121 AXIS | SDL_CONTROLLER_AXIS_TRIGGERRIGHT 1121 AXIS | SDL_CONTROLLER_AXIS_TRIGGERRIGHT
1122 }); 1122 });
1123 } else { 1123 } else {
1124 binding_box(context, bindings, "Right Shoulder", bind_box_left, font->height/2, bind_box_width, 1124 binding_box(context, bindings, "Right Shoulder", bind_box_left, font->height/2, bind_box_width,
1125 selected_controller_info.variant == VARIANT_6B_BUMPERS ? 1 : 2, 1125 selected_controller_info.variant == VARIANT_6B_RIGHT ? 2 : 1,
1126 (int[]){ 1126 (int[]){
1127 selected_controller_info.variant == VARIANT_6B_RIGHT ? SDL_CONTROLLER_BUTTON_LEFTSHOULDER : AXIS | SDL_CONTROLLER_AXIS_TRIGGERRIGHT, 1127 selected_controller_info.variant == VARIANT_6B_RIGHT ? SDL_CONTROLLER_BUTTON_LEFTSHOULDER : AXIS | SDL_CONTROLLER_AXIS_TRIGGERRIGHT,
1128 AXIS | SDL_CONTROLLER_AXIS_TRIGGERLEFT 1128 AXIS | SDL_CONTROLLER_AXIS_TRIGGERLEFT
1129 }); 1129 });
1130 } 1130 }