Cutout Vis2012
TUWienVisualisierung2(SS2012)-AdaptiveCutaways
Main Page
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Pages
src
InputHandler.h
1
#ifndef _INPUTHANDLER_H_
2
#define _INPUTHANDLER_H_
3
4
#include <gl/glfw.h>
5
9
class
InputHandler
10
{
11
public
:
12
InputHandler
();
13
17
bool
isMouseDown
(
int
button);
21
bool
isMousePressed
(
int
button);
25
bool
isMouseReleased
(
int
button);
26
30
bool
isKeyDown
(
int
key);
34
bool
isKeyPressed
(
int
key);
38
bool
isKeyReleased
(
int
key);
39
43
void
update
();
44
45
private
:
46
bool
_buttonDown[GLFW_MOUSE_BUTTON_LAST];
47
bool
_buttonPressed[GLFW_MOUSE_BUTTON_LAST];
48
bool
_buttonReleased[GLFW_MOUSE_BUTTON_LAST];
49
50
bool
_keyDown[256];
51
bool
_keyPressed[256];
52
bool
_keyReleased[256];
53
};
54
55
56
57
58
#endif
Generated on Mon Jun 10 2013 17:20:11 for Cutout Vis2012 by
1.8.4