Krig Game Engine
KeyState.h
Go to the documentation of this file.
1 
8 #ifndef _KEY_STATE_H_
9 #define _KEY_STATE_H_
10 
11 #define MAX_KEYS 256
12 #define KEY_STATE_INIT -1
13 #define KEY_STATE_PRESSED 1
14 #define KEY_STATE_RELEASED 2
15 
16 class KeyState {
17  public:
18  void initKeyState();
19  bool testKeyReleased(const int&);
20  bool testKeyPressed(const int&);
21 
22  int keys[MAX_KEYS];
23 };
24 
25 #endif
Definition: KeyState.h:16