Last change
on this file since 1117 was
1117,
checked in by sam, 11 years ago
|
math: move the Remez algorithm implementation to the core.
|
-
Property svn:keywords set to
Id
|
File size:
1.1 KB
|
Rev | Line | |
---|
[150] | 1 | // |
---|
[221] | 2 | // Lol Engine |
---|
[150] | 3 | // |
---|
[221] | 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 | // |
---|
[150] | 10 | |
---|
| 11 | // |
---|
| 12 | // The Input static class |
---|
| 13 | // ---------------------- |
---|
| 14 | // |
---|
| 15 | |
---|
[748] | 16 | #if !defined __LOL_INPUT_H__ |
---|
| 17 | #define __LOL_INPUT_H__ |
---|
[150] | 18 | |
---|
[1117] | 19 | #include "lol/math/matrix.h" |
---|
[150] | 20 | |
---|
[686] | 21 | namespace lol |
---|
| 22 | { |
---|
| 23 | |
---|
[326] | 24 | class WorldEntity; |
---|
| 25 | |
---|
[150] | 26 | class Input |
---|
| 27 | { |
---|
| 28 | public: |
---|
[326] | 29 | /* These methods are general queries */ |
---|
[664] | 30 | static vec2 GetAxis(int axis); |
---|
[863] | 31 | static ivec2 GetMousePos(); |
---|
[866] | 32 | static ivec3 GetMouseButtons(); |
---|
[326] | 33 | |
---|
| 34 | /* Entities can subscribe to events */ |
---|
[329] | 35 | static void TrackMouse(WorldEntity *e); |
---|
| 36 | static void UntrackMouse(WorldEntity *e); |
---|
[326] | 37 | |
---|
| 38 | /* These methods are called by the underlying input listeners */ |
---|
[863] | 39 | static void SetMousePos(ivec2 coord); |
---|
[236] | 40 | static void SetMouseButton(int index); |
---|
| 41 | static void UnsetMouseButton(int index); |
---|
[150] | 42 | }; |
---|
| 43 | |
---|
[686] | 44 | } /* namespace lol */ |
---|
| 45 | |
---|
[748] | 46 | #endif // __LOL_INPUT_H__ |
---|
[150] | 47 | |
---|
Note: See
TracBrowser
for help on using the repository browser.