diff 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
line wrap: on
line diff
--- a/nuklear_ui/blastem_nuklear.c	Thu Sep 01 22:37:25 2022 -0700
+++ b/nuklear_ui/blastem_nuklear.c	Thu Sep 01 22:43:02 2022 -0700
@@ -1122,7 +1122,7 @@
 			});
 		} else {
 			binding_box(context, bindings, "Right Shoulder", bind_box_left, font->height/2, bind_box_width,
-				selected_controller_info.variant == VARIANT_6B_BUMPERS ? 1 : 2,
+				selected_controller_info.variant == VARIANT_6B_RIGHT ? 2 : 1,
 				(int[]){
 				selected_controller_info.variant == VARIANT_6B_RIGHT ? SDL_CONTROLLER_BUTTON_LEFTSHOULDER : AXIS | SDL_CONTROLLER_AXIS_TRIGGERRIGHT,
 				AXIS | SDL_CONTROLLER_AXIS_TRIGGERLEFT