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
35
namespace
Lab
{
36
37
class
LabEngine;
38
class
Image
;
39
40
struct
IntuiMessage
{
41
MessageClass _msgClass;
42
uint16 _code;
// KeyCode or Button Id
43
uint16 _qualifier;
44
Common::Point
_mouse;
45
};
46
47
class
EventManager
{
48
private
:
49
LabEngine
*_vm;
50
51
bool
_leftClick;
52
bool
_rightClick;
53
bool
_buttonHit;
54
55
Common::Point
_mousePos;
56
Common::KeyState
_keyPressed;
57
58
public
:
59
EventManager
(
LabEngine
*vm);
60
61
IntuiMessage
*getMsg();
62
66
void
initMouse();
67
71
void
mouseShow();
72
76
void
mouseHide();
77
void
processInput();
78
82
void
setMousePos(
Common::Point
pos);
83
Common::Point
updateAndGetMousePos();
84
89
void
simulateEvent();
90
};
91
92
}
// End of namespace Lab
93
94
#endif // LAB_EVENTMAN_H
Lab::IntuiMessage
Definition:
eventman.h:40
Lab
Definition:
anim.h:33
Common::Point
Definition:
rect.h:45
Lab::EventManager
Definition:
eventman.h:47
Lab::LabEngine
Definition:
lab.h:119
Common::KeyState
Definition:
keyboard.h:294
Image
Definition:
movie_decoder.h:32
engines
lab
eventman.h
Generated on Thu Nov 21 2024 09:11:37 for ScummVM API documentation by
1.8.13