Last change
on this file since 866 was
866,
checked in by sam, 12 years ago
|
core: more vec?i -> ?veci renames.
|
-
Property svn:keywords set to
Id
|
File size:
1.0 KB
|
Line | |
---|
1 | // |
---|
2 | // Lol Engine |
---|
3 | // |
---|
4 | // Copyright: (c) 2010-2011 Sam Hocevar <sam@hocevar.net> |
---|
5 | // This program is free software; you can redistribute it and/or |
---|
6 | // modify it under the terms of the Do What The Fuck You Want To |
---|
7 | // Public License, Version 2, as published by Sam Hocevar. See |
---|
8 | // http://sam.zoy.org/projects/COPYING.WTFPL for more details. |
---|
9 | // |
---|
10 | |
---|
11 | // |
---|
12 | // The Input static class |
---|
13 | // ---------------------- |
---|
14 | // |
---|
15 | |
---|
16 | #if !defined __LOL_INPUT_H__ |
---|
17 | #define __LOL_INPUT_H__ |
---|
18 | |
---|
19 | #include "matrix.h" |
---|
20 | |
---|
21 | namespace lol |
---|
22 | { |
---|
23 | |
---|
24 | class WorldEntity; |
---|
25 | |
---|
26 | class Input |
---|
27 | { |
---|
28 | public: |
---|
29 | /* These methods are general queries */ |
---|
30 | static vec2 GetAxis(int axis); |
---|
31 | static ivec2 GetMousePos(); |
---|
32 | static ivec3 GetMouseButtons(); |
---|
33 | |
---|
34 | /* Entities can subscribe to events */ |
---|
35 | static void TrackMouse(WorldEntity *e); |
---|
36 | static void UntrackMouse(WorldEntity *e); |
---|
37 | |
---|
38 | /* These methods are called by the underlying input listeners */ |
---|
39 | static void SetMousePos(ivec2 coord); |
---|
40 | static void SetMouseButton(int index); |
---|
41 | static void UnsetMouseButton(int index); |
---|
42 | }; |
---|
43 | |
---|
44 | } /* namespace lol */ |
---|
45 | |
---|
46 | #endif // __LOL_INPUT_H__ |
---|
47 | |
---|
Note: See
TracBrowser
for help on using the repository browser.