2011-07-05 00:25:56 -05:00
|
|
|
/* 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.
|
|
|
|
*
|
2021-12-26 18:47:58 +01:00
|
|
|
* 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 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
2014-02-18 02:34:22 +01:00
|
|
|
*
|
2011-07-05 00:25:56 -05:00
|
|
|
* 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.
|
2014-02-18 02:34:22 +01:00
|
|
|
*
|
2011-07-05 00:25:56 -05:00
|
|
|
* You should have received a copy of the GNU General Public License
|
2021-12-26 18:47:58 +01:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2011-07-05 00:25:56 -05:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#if defined(MAEMO)
|
|
|
|
|
|
|
|
#ifndef PLATFORM_SDL_MAEMO_H
|
|
|
|
#define PLATFORM_SDL_MAEMO_H
|
|
|
|
|
|
|
|
#include "backends/platform/sdl/posix/posix.h"
|
2011-10-11 17:24:00 -05:00
|
|
|
#include "backends/platform/maemo/maemo-common.h"
|
|
|
|
|
2011-10-11 18:17:30 -05:00
|
|
|
namespace Maemo {
|
2012-02-09 01:26:42 -06:00
|
|
|
class MaemoSdlEventObserver;
|
2011-07-05 00:25:56 -05:00
|
|
|
|
2020-11-01 20:04:57 +00:00
|
|
|
class OSystem_SDL_Maemo final : public OSystem_POSIX {
|
2011-07-05 00:25:56 -05:00
|
|
|
public:
|
|
|
|
OSystem_SDL_Maemo();
|
2012-02-09 01:26:42 -06:00
|
|
|
~OSystem_SDL_Maemo();
|
2011-07-05 00:25:56 -05:00
|
|
|
|
2021-11-13 23:18:12 +02:00
|
|
|
void init() override;
|
|
|
|
void initBackend() override;
|
|
|
|
void quit() override;
|
|
|
|
void fatalError() override;
|
|
|
|
void setWindowCaption(const Common::U32String &caption) override;
|
|
|
|
Common::HardwareInputSet *getHardwareInputSet() override;
|
|
|
|
Common::KeymapArray getGlobalKeymaps() override;
|
|
|
|
Common::KeymapperDefaultBindings *getKeymapperDefaultBindings() override;
|
2011-07-19 23:56:16 -05:00
|
|
|
|
2011-10-11 18:17:30 -05:00
|
|
|
Model getModel() { return _model; }
|
2011-10-11 17:24:00 -05:00
|
|
|
|
2011-07-19 23:56:16 -05:00
|
|
|
private:
|
|
|
|
virtual void setXWindowName(const char *caption);
|
2012-02-09 01:26:42 -06:00
|
|
|
void initObserver();
|
2011-07-05 00:25:56 -05:00
|
|
|
|
2011-10-11 18:17:30 -05:00
|
|
|
const Model detectModel();
|
|
|
|
Model _model;
|
2012-02-09 01:26:42 -06:00
|
|
|
MaemoSdlEventObserver *_eventObserver;
|
2011-07-19 23:56:16 -05:00
|
|
|
};
|
2011-07-05 00:25:56 -05:00
|
|
|
|
2011-10-11 18:17:30 -05:00
|
|
|
} // namespace Maemo
|
|
|
|
|
2011-10-11 17:24:00 -05:00
|
|
|
#endif // ifndef PLATFORM_SDL_MAEMO_H
|
|
|
|
|
|
|
|
#endif // if defined(MAEMO)
|