ScummVM API documentation
input_handler.h
1/* ScummVM - Graphic Adventure Engine
2 *
3 * ScummVM is the legal property of its developers, whose names
4 * are too numerous to list here. Please refer to the COPYRIGHT
5 * file distributed with this source distribution.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 */
21
22#ifndef ULTIMA_SHARED_ENGINE_INPUT_HANDLER_H
23#define ULTIMA_SHARED_ENGINE_INPUT_HANDLER_H
24
25#include "ultima/shared/engine/input_translator.h"
26#include "ultima/shared/core/tree_item.h"
27
28namespace Ultima {
29namespace Shared {
30
31class GameBase;
32
34private:
38 void processMessage(CMessage *msg);
39
43 void dispatchMessage(CMessage *msg);
44public:
45 GameBase *_game;
46 InputTranslator *_inputTranslator;
47 bool _dragging;
48 bool _buttonDown;
49 Point _mousePos;
50 Point _dragStartPos;
51 int _lockCount;
52 bool _abortMessage;
53public:
56
57 void setTranslator(InputTranslator *translator);
58
63
68
72 void handleMessage(CMessage &msg, bool respectLock = true);
73};
74
75} // End of namespace Shared
76} // End of namespace Ultima
77
78#endif
Definition: messages.h:87
Definition: game_base.h:53
Definition: input_handler.h:33
void handleMessage(CMessage &msg, bool respectLock=true)
Definition: input_translator.h:33
Definition: rect.h:144