ScummVM API documentation
events.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 #ifndef PELROCK_EVENTS_H
22 #define PELROCK_EVENTS_H
23 
24 #include "common/events.h"
25 #include "common/scummsys.h"
26 
27 namespace Pelrock {
28 static const int kDoubleClickDelay = 300; // in milliseconds
30 private:
31  Common::Event _event;
32  uint32 _clickTime = 0;
33 
34 public:
35  int16 _mouseX = 0;
36  int16 _mouseY = 0;
37  int16 _mouseClickX = 0;
38  int16 _mouseClickY = 0;
39  int16 _releaseX = 0;
40  int16 _releaseY = 0;
41  bool _leftMouseClicked = false;
42  bool _longClicked = false;
43  bool _rightMouseClicked = false;
44  bool _popupSelectionMode = false;
45  bool _leftMouseButton = false;
46  bool _rightMouseButton = false;
47  bool _isKeydown = false;
48  Common::KeyCode _lastKeyEvent = Common::KEYCODE_INVALID;
49  uint16 _lastKeyAscii = 0;
51  void pollEvent();
52  void waitForKey();
53 };
54 
55 } // End of namespace Pelrock
56 #endif
Definition: events.h:29
Definition: actions.h:27
Definition: events.h:210