mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-02 14:51:40 +00:00
GP2X: More compilation fixes
svn-id: r54569
This commit is contained in:
parent
fba6ee8af9
commit
1ef8d5e38a
@ -25,6 +25,9 @@
|
||||
|
||||
#if defined(GP2X) || defined(GP2XWIZ)
|
||||
|
||||
// Disable symbol overrides so that we can use system headers.
|
||||
#define FORBIDDEN_SYMBOL_EXCEPTION_FILE
|
||||
|
||||
#include "backends/events/gp2xsdl/gp2xsdl-events.h"
|
||||
#if defined(GP2X)
|
||||
#include "backends/platform/gp2x/gp2x-hw.h"
|
||||
@ -200,28 +203,6 @@ bool GP2XSdlEventSource::handleKeyDown(SDL_Event &ev, Common::Event &event) {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GP2XSdlEventSource::handleKeyUp(SDL_Event &ev, Common::Event &event) {
|
||||
if (remapKey(ev, event))
|
||||
return true;
|
||||
|
||||
event.type = Common::EVENT_KEYUP;
|
||||
event.kbd.keycode = (Common::KeyCode)ev.key.keysym.sym;
|
||||
event.kbd.ascii = mapKey(ev.key.keysym.sym, ev.key.keysym.mod, ev.key.keysym.unicode);
|
||||
|
||||
// Ctrl-Alt-<key> will change the GFX mode
|
||||
SDLModToOSystemKeyFlags(SDL_GetModState(), event);
|
||||
|
||||
// Set the scroll lock sticky flag
|
||||
if (_scrollLock)
|
||||
event.kbd.flags |= Common::KBD_SCRL;
|
||||
|
||||
if (isScalerHotkey(event))
|
||||
// Swallow these key up events
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GP2XSdlEventSource::handleJoyButtonDown(SDL_Event &ev, Common::Event &event) {
|
||||
|
||||
_stickBtn[ev.jbutton.button] = 1;
|
||||
|
@ -47,7 +47,6 @@ protected:
|
||||
void moveStick();
|
||||
|
||||
virtual bool handleKeyDown(SDL_Event &ev, Common::Event &event);
|
||||
virtual bool handleKeyUp(SDL_Event &ev, Common::Event &event);
|
||||
virtual bool handleJoyButtonDown(SDL_Event &ev, Common::Event &event);
|
||||
virtual bool handleJoyButtonUp(SDL_Event &ev, Common::Event &event);
|
||||
virtual bool handleJoyAxisMotion(SDL_Event &ev, Common::Event &event);
|
||||
|
@ -25,6 +25,9 @@
|
||||
|
||||
#ifdef GP2X
|
||||
|
||||
// Disable symbol overrides so that we can use system headers.
|
||||
#define FORBIDDEN_SYMBOL_EXCEPTION_FILE
|
||||
|
||||
#include "backends/graphics/gp2xsdl/gp2xsdl-graphics.h"
|
||||
#include "graphics/scaler/aspect.h"
|
||||
#include <SDL_gp2x.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user