changeset 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 58774a77f2e0
children dd9d43c67986 ab19edd77c5e
files nuklear_ui/blastem_nuklear.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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