ScummVM API documentation
eventman.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/*
23 * This code is based on Labyrinth of Time code with assistance of
24 *
25 * Copyright (c) 1993 Terra Nova Development
26 * Copyright (c) 2004 The Wyrmkeep Entertainment Co.
27 *
28 */
29
30#ifndef LAB_EVENTMAN_H
31#define LAB_EVENTMAN_H
32
33#include "common/events.h"
34
35namespace Lab {
36
37class LabEngine;
38class Image;
39
41 MessageClass _msgClass;
42 uint16 _code; // Action or Button Id
43 uint16 _qualifier;
44 Common::Point _mouse;
45};
46
48private:
49 LabEngine *_vm;
50
51 bool _leftClick;
52 bool _rightClick;
53 bool _buttonHit;
54
55 Common::Point _mousePos;
56 Common::CustomEventType _actionPressed;
57
58public:
60
61 IntuiMessage *getMsg();
62
66 void initMouse();
67
71 void mouseShow();
72
76 void mouseHide();
77 void processInput();
78
83 Common::Point updateAndGetMousePos();
84
90};
91
92} // End of namespace Lab
93
94#endif // LAB_EVENTMAN_H
Definition: eventman.h:47
void setMousePos(Common::Point pos)
Definition: lab.h:158
uint32 CustomEventType
Definition: events.h:212
Definition: rect.h:144
Definition: eventman.h:40