ScummVM API documentation
input.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 #ifndef NGI_INPUT_H
23 #define NGI_INPUT_H
24 
25 namespace NGI {
26 
27 class Picture;
28 
29 void setInputDisabled(bool state);
30 
31 struct CursorInfo {
32  int pictureId;
33  Picture *picture;
34  int hotspotX;
35  int hotspotY;
36  int itemPictureOffsX;
37  int itemPictureOffsY;
38  int width;
39  int height;
40 
41  CursorInfo() { memset(this, 0, sizeof(*this)); }
42 };
43 
45 
47  //CObject obj;
48  int _flag;
49  int _inputFlags;
50  int _cursorHandle;
51  int _hCursor;
52  int _field_14;
53  int _cursorId;
54  int _cursorIndex;
55  CursorsArray _cursorsArray;
56  Common::Rect _cursorBounds;
57  Picture *_cursorItemPicture;
58 
59  public:
61  ~InputController();
62 
63  void setInputDisabled(bool state);
64  void addCursor(CursorInfo *cursor);
65  void setCursorMode(bool mode);
66 
67  void drawCursor(int x, int y);
68  void setCursor(int id);
69 
70  void setCursorItemPicture(Picture *pic) { _cursorItemPicture = pic; }
71 };
72 
73 } // End of namespace NGI
74 
75 #endif /* NGI_INPUT_H */
Definition: rect.h:144
Definition: input.h:46
Definition: gfx.h:80
Definition: input.h:31
Definition: anihandler.h:25