diff options
author | Fabio Battaglia | 2010-10-23 09:30:26 +0000 |
---|---|---|
committer | Fabio Battaglia | 2010-10-23 09:30:26 +0000 |
commit | 74a53df11b51fa4956745c086b2e6351b8383568 (patch) | |
tree | 2ec2ce66310986e6bebdc21582e7e9c5ad3b014c /backends/events/dinguxsdl/dinguxsdl-events.h | |
parent | b713beed189b439853be50fa330d06b3275f9713 (diff) | |
download | scummvm-rg350-74a53df11b51fa4956745c086b2e6351b8383568.tar.gz scummvm-rg350-74a53df11b51fa4956745c086b2e6351b8383568.tar.bz2 scummvm-rg350-74a53df11b51fa4956745c086b2e6351b8383568.zip |
DINGUX: fix compilation for the opengl branch
Moved events related code to backends/events/dinguxsdl/*
and move graphics related code to backends/graphics/dinguxsdl/*
Subclass OSystem_POSIX instead of OSystem_SDL
svn-id: r53730
Diffstat (limited to 'backends/events/dinguxsdl/dinguxsdl-events.h')
-rw-r--r-- | backends/events/dinguxsdl/dinguxsdl-events.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/backends/events/dinguxsdl/dinguxsdl-events.h b/backends/events/dinguxsdl/dinguxsdl-events.h new file mode 100644 index 0000000000..f269fcf358 --- /dev/null +++ b/backends/events/dinguxsdl/dinguxsdl-events.h @@ -0,0 +1,47 @@ +/* ScummVM - Graphic Adventure Engine + * + * ScummVM is the legal property of its developers, whose names + * are too numerous to list here. Please refer to the COPYRIGHT + * file distributed with this source distribution. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + * $URL$ + * $Id$ + * + */ + +#ifndef BACKENDS_EVENTS_SDL_DINGUX_H +#define BACKENDS_EVENTS_SDL_DINGUX_H +#if defined(DINGUX) + +#include "backends/platform/dingux/dingux.h" +#include "backends/events/dinguxsdl/dinguxsdl-events.h" + +class DINGUXSdlEventSource : public SdlEventSource { +public: + DINGUXSdlEventSource(); + void setCurrentGraphMan(DINGUXSdlGraphicsManager *_graphicManager); + +protected: + DINGUXSdlGraphicsManager *_grpMan; + + bool remapKey(SDL_Event &ev, Common::Event &event); + void fillMouseEvent(Common::Event &event, int x, int y); + void warpMouse(int x, int y); +}; + +#endif /* DINGUX */ +#endif /* BACKENDS_EVENTS_SDL_DINGUX_H */ |