Support for ps3-controller using the shanwan-driver

This commit is contained in:
Dimitris Panokostas 2016-11-30 22:27:46 +01:00
parent 13df0bcfa8
commit 82d089557d

View file

@ -285,7 +285,8 @@ static int init_joystick (void)
printf("Joystick %i : %s\n",cpt,JoystickName[cpt]);
printf(" Buttons: %i Axis: %i Hats: %i\n",SDL_JoystickNumButtons(Joysticktable[cpt]),SDL_JoystickNumAxes(Joysticktable[cpt]),SDL_JoystickNumHats(Joysticktable[cpt]));
if (strcmp(JoystickName[cpt],"Sony PLAYSTATION(R)3 Controller") == 0)
if (strcmp(JoystickName[cpt],"Sony PLAYSTATION(R)3 Controller") == 0 ||
strcmp(JoystickName[cpt],"PLAYSTATION(R)3 Controller") == 0)
{
printf(" Found a dualshock controller: Activating workaround.\n");
IsPS3Controller[cpt] = 1;