# HG changeset patch # User Michael Pavone # Date 1485491280 28800 # Node ID 3d3bad51183d78bbfc3135d12bc723ffc8acce3a # Parent d7be5b6e0a8dd1feaf92d0f39c4ecbb1d44de3a2 Added mappings to allow PS-style names for leftstick/rightstick click actions aka l3/r3 diff -r d7be5b6e0a8d -r 3d3bad51183d render_sdl.c --- 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) {