ScummVM API documentation
proc.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 #ifndef GAMOS_PROC_H
24 #define GAMOS_PROC_H
25 
26 #include "common/events.h"
27 
28 namespace Gamos {
29 
30 enum ACT2 {
31  ACT_NONE = 0xe,
32  ACT2_MOUSEDOWN = 0x81,
33  ACT2_MOUSEUP_L = 0x82,
34  ACT2_MOUSEUP_R = 0x83,
35  ACT2_HELP = 0x84,
36  ACT2_TAB = 0x8f,
37 };
38 
39 class SystemProc {
40 public:
41  SystemProc(KeyCodes *conv) : _codesConverter(conv) {};
42 
43  void processMessage(const Common::Event &ev);
44 
45 public:
46  KeyCodes *_codesConverter = nullptr;
47 
48  uint8 _act1 = 0;
49  uint8 _act2 = 0;
50 
51  uint8 _rawKeyCode = 0;
52  uint16 _ascii = 0;
53 
54 
55  Common::Point _mouseReportedPos;
56  Common::Point _mouseActPos;
57 
58  uint8 _inputFlags = 0; /* 0x4 */
59  uint8 _keyCodes[12]; /* 0x40 */
60 
61 };
62 
63 
64 }
65 
66 #endif //GAMOS_PROC_H
Definition: blit.h:28
Definition: keycodes.h:29
Definition: events.h:210
Definition: rect.h:144
Definition: proc.h:39