diff options
author | Bastien Bouclet | 2011-06-04 12:54:37 +0200 |
---|---|---|
committer | Bastien Bouclet | 2011-06-22 19:57:44 +0200 |
commit | 6633a06519bfc0a826e1e1664b88c4dd413abbeb (patch) | |
tree | ef3c4ebc961cbfa08e242de0d8fd8cec8eb2bae9 /backends/platform | |
parent | 8bd78b6325213695116c1494c65795406d797b0b (diff) | |
download | scummvm-rg350-6633a06519bfc0a826e1e1664b88c4dd413abbeb.tar.gz scummvm-rg350-6633a06519bfc0a826e1e1664b88c4dd413abbeb.tar.bz2 scummvm-rg350-6633a06519bfc0a826e1e1664b88c4dd413abbeb.zip |
PS3: Map joypad buttons to features. Enable the virtual keyboard.
Diffstat (limited to 'backends/platform')
-rw-r--r-- | backends/platform/sdl/ps3/ps3.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/backends/platform/sdl/ps3/ps3.cpp b/backends/platform/sdl/ps3/ps3.cpp index 32be580f6e..16722ccdb7 100644 --- a/backends/platform/sdl/ps3/ps3.cpp +++ b/backends/platform/sdl/ps3/ps3.cpp @@ -30,6 +30,7 @@ #include "backends/graphics/surfacesdl/surfacesdl-graphics.h" #include "backends/saves/default/default-saves.h" #include "backends/fs/ps3/ps3-fs-factory.h" +#include "backends/events/ps3sdl/ps3sdl-events.h" #include "backends/mixer/sdl13/sdl13-mixer.h" #include <dirent.h> @@ -58,7 +59,8 @@ void OSystem_PS3::init() { } void OSystem_PS3::initBackend() { - ConfMan.registerDefault("joystick_num", 0); + ConfMan.set("joystick_num", 0); + ConfMan.set("vkeybdpath", PREFIX "/data"); ConfMan.registerDefault("fullscreen", true); ConfMan.registerDefault("aspect_ratio", true); @@ -74,6 +76,10 @@ void OSystem_PS3::initBackend() { _mixerManager->init(); } + // Event source + if (_eventSource == 0) + _eventSource = new PS3SdlEventSource(); + // Invoke parent implementation of this method OSystem_SDL::initBackend(); } |