aboutsummaryrefslogtreecommitdiff
path: root/backends/events/ps3sdl/ps3sdl-events.cpp
diff options
context:
space:
mode:
authorBastien Bouclet2014-06-27 16:45:58 +0200
committerBastien Bouclet2015-12-15 20:10:19 +0100
commitb9a107499911873a0f5e5452d292f6541f0f001a (patch)
tree2236e84a6afa3908bf4d2d1dec657b5a81222085 /backends/events/ps3sdl/ps3sdl-events.cpp
parentd80c39bb29638bed4bff6453502878eaa5afbbf9 (diff)
downloadscummvm-rg350-b9a107499911873a0f5e5452d292f6541f0f001a.tar.gz
scummvm-rg350-b9a107499911873a0f5e5452d292f6541f0f001a.tar.bz2
scummvm-rg350-b9a107499911873a0f5e5452d292f6541f0f001a.zip
PS3: Make use of an updated SDL2 version
This version, available at https://bitbucket.org/bgK/sdl_psl1ght, is based on SDL 2.0.3.
Diffstat (limited to 'backends/events/ps3sdl/ps3sdl-events.cpp')
-rw-r--r--backends/events/ps3sdl/ps3sdl-events.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/backends/events/ps3sdl/ps3sdl-events.cpp b/backends/events/ps3sdl/ps3sdl-events.cpp
index 0f6e01857b..1fc10559c2 100644
--- a/backends/events/ps3sdl/ps3sdl-events.cpp
+++ b/backends/events/ps3sdl/ps3sdl-events.cpp
@@ -126,8 +126,8 @@ bool PS3SdlEventSource::handleJoyButtonUp(SDL_Event &ev, Common::Event &event) {
* This pauses execution and keeps redrawing the screen until the XMB is closed.
*/
void PS3SdlEventSource::preprocessEvents(SDL_Event *event) {
- if (event->type == SDL_ACTIVEEVENT) {
- if (event->active.state == SDL_APPMOUSEFOCUS && !event->active.gain) {
+ if (event->type == SDL_WINDOWEVENT) {
+ if (event->window.event == SDL_WINDOWEVENT_LEAVE) {
// XMB opened
if (g_engine)
g_engine->pauseEngine(true);
@@ -145,9 +145,9 @@ void PS3SdlEventSource::preprocessEvents(SDL_Event *event) {
}
if (event->type == SDL_QUIT)
return;
- if (event->type != SDL_ACTIVEEVENT)
+ if (event->type != SDL_WINDOWEVENT)
continue;
- if (event->active.state == SDL_APPMOUSEFOCUS && event->active.gain) {
+ if (event->window.event == SDL_WINDOWEVENT_ENTER) {
// XMB closed
if (g_engine)
g_engine->pauseEngine(false);