From 68ebff722e81d0414ecdad7e8437f5610e2f5495 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Valor=20Mart=C3=ADnez?= Date: Fri, 10 Feb 2023 20:31:37 +0100 Subject: [PATCH] =?UTF-8?q?-=20FIX:=20cambiado=20el=20boton=20de=20gu?= =?UTF-8?q?=C3=ADa=20por=20el=20de=20select=20(o=20back)=20-=20A=C3=B1adid?= =?UTF-8?q?o=20flag=20para=20intercambiar=20los=20botones=20de=20start=20y?= =?UTF-8?q?=20select=20en=20consola=20-=20A=C3=B1adido=20bot=C3=B3n=20para?= =?UTF-8?q?=20activar=20o=20desactivar=20el=20borde=20con=20el=20mando=20(?= =?UTF-8?q?bot=C3=B3n=20X)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/director.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/director.cpp b/source/director.cpp index 85acd069..d8dbe69b 100644 --- a/source/director.cpp +++ b/source/director.cpp @@ -1251,10 +1251,16 @@ void Director::initInput() // Mando - Otros input->bindGameControllerButton(input_accept, SDL_CONTROLLER_BUTTON_B); input->bindGameControllerButton(input_cancel, SDL_CONTROLLER_BUTTON_A); +#ifdef GAME_CONSOLE + input->bindGameControllerButton(input_pause, SDL_CONTROLLER_BUTTON_BACK); + input->bindGameControllerButton(input_exit, SDL_CONTROLLER_BUTTON_START); +#else input->bindGameControllerButton(input_pause, SDL_CONTROLLER_BUTTON_START); - input->bindGameControllerButton(input_exit, SDL_CONTROLLER_BUTTON_GUIDE); + input->bindGameControllerButton(input_exit, SDL_CONTROLLER_BUTTON_BACK); +#endif input->bindGameControllerButton(input_swap_palette, SDL_CONTROLLER_BUTTON_LEFTSHOULDER); input->bindGameControllerButton(input_switch_music, SDL_CONTROLLER_BUTTON_RIGHTSHOULDER); + input->bindGameControllerButton(input_toggle_border, SDL_CONTROLLER_BUTTON_X); } // Inicializa JailAudio