diff render_sdl.c @ 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 a6ae693974e0
children 9d6f155732ed
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) {