changeset 1205:3d3bad51183d

Added mappings to allow PS-style names for leftstick/rightstick click actions aka l3/r3
author Michael Pavone <pavone@retrodev.com>
date Thu, 26 Jan 2017 20:28:00 -0800
parents d7be5b6e0a8d
children 32265f6b79e9
files render_sdl.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/render_sdl.c	Thu Jan 26 20:07:17 2017 -0800
+++ b/render_sdl.c	Thu Jan 26 20:28:00 2017 -0800
@@ -682,6 +682,8 @@
 		button_lookup = tern_insert_int(button_lookup, "options", SDL_CONTROLLER_BUTTON_START);
 		button_lookup = tern_insert_int(button_lookup, "l1", SDL_CONTROLLER_BUTTON_LEFTSHOULDER);
 		button_lookup = tern_insert_int(button_lookup, "r1", SDL_CONTROLLER_BUTTON_RIGHTSHOULDER);
+		button_lookup = tern_insert_int(button_lookup, "l3", SDL_CONTROLLER_BUTTON_LEFTSTICK);
+		button_lookup = tern_insert_int(button_lookup, "r3", SDL_CONTROLLER_BUTTON_RIGHTSTICK);
 	}
 	intptr_t sdl_button = tern_find_int(button_lookup, name, SDL_CONTROLLER_BUTTON_INVALID);
 	if (sdl_button == SDL_CONTROLLER_BUTTON_INVALID) {