summaryrefslogtreecommitdiff
path: root/src/gui/KeyManager.h
blob: 1f5f54d05b13df30da1b0ceec8a3ad10471d6a1d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 * KeyManager.h
 *
 *  Created on: May 4, 2011
 *      Author: jakob
 */

#ifndef KEYMANAGER_H_
#define KEYMANAGER_H_

#include <set>

namespace vhc {

class Stage;

class KeyManager {

public:
	KeyManager(Stage& stage);
	virtual ~KeyManager();

	void press(int key);
	void release(int key);
	bool isPressed(int key) const;

private:
	Stage& stage;

	std::set<int> keys;

};

}

#endif /* KEYMANAGER_H_ */