Skip to content

Commit

Permalink
IOS: Merge master
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Bénony committed Jan 6, 2016
2 parents fae7995 + 3fab905 commit 64f5076
Show file tree
Hide file tree
Showing 147 changed files with 3,110 additions and 4,592 deletions.
3 changes: 3 additions & 0 deletions AUTHORS
Expand Up @@ -739,3 +739,6 @@ Special thanks to
two Lost Files of Sherlock Holmes games. James M. Ferguson and Barry
Duncan for their tenacious efforts to recover the sources.

The mindFactory team for writing Broken Sword 2.5, a splendid fan-made
sequel, and for sharing the source code with us.

3 changes: 3 additions & 0 deletions Makefile.common
Expand Up @@ -246,6 +246,9 @@ DIST_FILES_THEMES:=$(addprefix $(srcdir)/gui/themes/,$(DIST_FILES_THEMES))

# Engine data files
DIST_FILES_ENGINEDATA=
ifdef ENABLE_ACCESS
DIST_FILES_ENGINEDATA+=access.dat
endif
ifdef ENABLE_DRASCULA
DIST_FILES_ENGINEDATA+=drascula.dat
endif
Expand Down
4 changes: 2 additions & 2 deletions README
Expand Up @@ -160,7 +160,7 @@ reproducible, and still occurs in the latest git/Daily build version.
Also check the known problems list (below) and the compatibility list
on our website for that game, to ensure the issue is not already known:

http://www.scummvm.org/compatibility_stable.php
http://scummvm.org/compatibility/

Please do not report bugs on games that are not listed as being
completeable in the 'Supported Games' section, or compatibility list. We
Expand Down Expand Up @@ -2434,7 +2434,7 @@ currently we have only x86 MMX optimized versions, and they will not
compile on other processors.

On Win9x/NT/XP, you can define USE_WINDBG and attach WinDbg to browse
debug messages (see http://www.sysinternals.com/ntw2k/freeware/debugview.shtml).
debug messages (see https://technet.microsoft.com/en-us/sysinternals/debugview.aspx).


GCC and MinGW32:
Expand Down
4 changes: 2 additions & 2 deletions backends/audiocd/sdl/sdl-audiocd.cpp
Expand Up @@ -26,7 +26,7 @@

#include "backends/audiocd/sdl/sdl-audiocd.h"

#if !SDL_VERSION_ATLEAST(1, 3, 0)
#if !SDL_VERSION_ATLEAST(2, 0, 0)

#include "common/textconsole.h"

Expand Down Expand Up @@ -136,6 +136,6 @@ void SdlAudioCDManager::updateCD() {
}
}

#endif // !SDL_VERSION_ATLEAST(1, 3, 0)
#endif // !SDL_VERSION_ATLEAST(2, 0, 0)

#endif
4 changes: 2 additions & 2 deletions backends/audiocd/sdl/sdl-audiocd.h
Expand Up @@ -27,7 +27,7 @@

#include "backends/platform/sdl/sdl-sys.h"

#if !SDL_VERSION_ATLEAST(1, 3, 0)
#if !SDL_VERSION_ATLEAST(2, 0, 0)

/**
* The SDL audio cd manager. Implements real audio cd playback.
Expand All @@ -49,6 +49,6 @@ class SdlAudioCDManager : public DefaultAudioCDManager {
uint32 _cdEndTime, _cdStopTime;
};

#endif // !SDL_VERSION_ATLEAST(1, 3, 0)
#endif // !SDL_VERSION_ATLEAST(2, 0, 0)

#endif
8 changes: 4 additions & 4 deletions backends/events/ps3sdl/ps3sdl-events.cpp
Expand Up @@ -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);
Expand All @@ -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);
Expand Down
9 changes: 4 additions & 5 deletions backends/events/sdl/sdl-events.cpp
Expand Up @@ -314,7 +314,7 @@ Common::KeyCode SdlEventSource::SDLToOSystemKeycode(const SDLKey key) {
case SDLK_y: return Common::KEYCODE_y;
case SDLK_z: return Common::KEYCODE_z;
case SDLK_DELETE: return Common::KEYCODE_DELETE;
#if SDL_VERSION_ATLEAST(1, 3, 0)
#if SDL_VERSION_ATLEAST(2, 0, 0)
case SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_GRAVE): return Common::KEYCODE_TILDE;
#else
case SDLK_WORLD_16: return Common::KEYCODE_TILDE;
Expand Down Expand Up @@ -737,16 +737,16 @@ bool SdlEventSource::handleJoyButtonUp(SDL_Event &ev, Common::Event &event) {

bool SdlEventSource::handleJoyAxisMotion(SDL_Event &ev, Common::Event &event) {
int axis = ev.jaxis.value;
if ( axis > JOY_DEADZONE) {
if (axis > JOY_DEADZONE) {
axis -= JOY_DEADZONE;
event.type = Common::EVENT_MOUSEMOVE;
} else if ( axis < -JOY_DEADZONE ) {
} else if (axis < -JOY_DEADZONE) {
axis += JOY_DEADZONE;
event.type = Common::EVENT_MOUSEMOVE;
} else
axis = 0;

if ( ev.jaxis.axis == JOY_XAXIS) {
if (ev.jaxis.axis == JOY_XAXIS) {
#ifdef JOY_ANALOG
_km.x_vel = axis / 2000;
_km.x_down_count = 0;
Expand All @@ -759,7 +759,6 @@ bool SdlEventSource::handleJoyAxisMotion(SDL_Event &ev, Common::Event &event) {
_km.x_down_count = 0;
}
#endif

} else if (ev.jaxis.axis == JOY_YAXIS) {
#ifndef JOY_INVERT_Y
axis = -axis;
Expand Down

0 comments on commit 64f5076

Please sign in to comment.