diff options
author | rsn8887 | 2017-12-20 12:59:00 -0600 |
---|---|---|
committer | Bastien Bouclet | 2017-12-26 21:11:05 +0100 |
commit | dafadbc8c77fe89d0504ddfdef159e1c37491f81 (patch) | |
tree | 86980ecdfc36174b5594a990cb960d54b455058b /backends/platform | |
parent | 1522fc8e2f109229d9947158a1cd2ccc8c4642e1 (diff) | |
download | scummvm-rg350-dafadbc8c77fe89d0504ddfdef159e1c37491f81.tar.gz scummvm-rg350-dafadbc8c77fe89d0504ddfdef159e1c37491f81.tar.bz2 scummvm-rg350-dafadbc8c77fe89d0504ddfdef159e1c37491f81.zip |
PSP2: Add controller config, remove joystick event handling
Diffstat (limited to 'backends/platform')
-rw-r--r-- | backends/platform/sdl/psp2/psp2.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/backends/platform/sdl/psp2/psp2.cpp b/backends/platform/sdl/psp2/psp2.cpp index f323db72af..12154ba7d0 100644 --- a/backends/platform/sdl/psp2/psp2.cpp +++ b/backends/platform/sdl/psp2/psp2.cpp @@ -102,6 +102,14 @@ void OSystem_PSP2::initBackend() { if (_savefileManager == 0) _savefileManager = new DefaultSaveFileManager("ux0:data/scummvm/saves"); + // Controller mappings for Vita, various names have been used in various SDL versions + SDL_GameControllerAddMapping("50535669746120436f6e74726f6c6c65,PSVita Controller,y:b0,b:b1,a:b2,x:b3,leftshoulder:b4,rightshoulder:b5,dpdown:b6,dpleft:b7,dpup:b8,dpright:b9,back:b10,start:b11,leftx:a0,lefty:a1,rightx:a2,righty:a3,"); + SDL_GameControllerAddMapping("50535669746120636f6e74726f6c6c65,PSVita controller,y:b0,b:b1,a:b2,x:b3,leftshoulder:b4,rightshoulder:b5,dpdown:b6,dpleft:b7,dpup:b8,dpright:b9,back:b10,start:b11,leftx:a0,lefty:a1,rightx:a2,righty:a3,"); + SDL_GameControllerAddMapping("50535669746120636f6e74726f6c6c65,PSVita controller 2,y:b0,b:b1,a:b2,x:b3,leftshoulder:b4,rightshoulder:b5,dpdown:b6,dpleft:b7,dpup:b8,dpright:b9,back:b10,start:b11,leftx:a0,lefty:a1,rightx:a2,righty:a3,"); + SDL_GameControllerAddMapping("50535669746120636f6e74726f6c6c65,PSVita controller 3,y:b0,b:b1,a:b2,x:b3,leftshoulder:b4,rightshoulder:b5,dpdown:b6,dpleft:b7,dpup:b8,dpright:b9,back:b10,start:b11,leftx:a0,lefty:a1,rightx:a2,righty:a3,"); + SDL_GameControllerAddMapping("50535669746120636f6e74726f6c6c65,PSVita controller 4,y:b0,b:b1,a:b2,x:b3,leftshoulder:b4,rightshoulder:b5,dpdown:b6,dpleft:b7,dpup:b8,dpright:b9,back:b10,start:b11,leftx:a0,lefty:a1,rightx:a2,righty:a3,"); + SDL_GameControllerAddMapping("505356697461206275696c74696e206a,PSVita builtin joypad,y:b0,b:b1,a:b2,x:b3,leftshoulder:b4,rightshoulder:b5,dpdown:b6,dpleft:b7,dpup:b8,dpright:b9,back:b10,start:b11,leftx:a0,lefty:a1,rightx:a2,righty:a3,"); + // Event source if (_eventSource == 0) _eventSource = new PSP2EventSource(); |