Add another Button to the Button map for Controllers ( like DS3) with 16

Buttons. Fixes Square button not being recognised by PPSSPP when using a
Dual Shock 3 Controller.
This commit is contained in:
sven 2014-04-05 15:43:48 +02:00
parent 656f5bf9dd
commit 372a7a4027

View File

@ -34,7 +34,7 @@ private:
void fillMapping()
{
// This is just a standard mapping that matches the X360 controller on MacOSX. Names will probably be all wrong
// on other controllers.
// on other controllers.
//TODO: C++11 aggregate initialization
//would remove runtime overhead completely
@ -77,6 +77,7 @@ private:
SDLJoyButtonMap[12] = NKCODE_BUTTON_3;
SDLJoyButtonMap[13] = NKCODE_BUTTON_4;
SDLJoyButtonMap[14] = NKCODE_BUTTON_1;
SDLJoyButtonMap[15] = NKCODE_BUTTON_11;
SDLJoyAxisMap[0] = JOYSTICK_AXIS_X;
SDLJoyAxisMap[1] = JOYSTICK_AXIS_Y;