From 5a16fc0aabc4d41c29859fab57c2563e15603416 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Thu, 26 Jan 2017 20:28:00 -0800 Subject: Added mappings to allow PS-style names for leftstick/rightstick click actions aka l3/r3 --- render_sdl.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'render_sdl.c') diff --git a/render_sdl.c b/render_sdl.c index d808b6f..13aa118 100755 --- a/render_sdl.c +++ b/render_sdl.c @@ -682,6 +682,8 @@ int32_t render_translate_input_name(int32_t controller, char *name) 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) { -- cgit v1.2.3