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