Voxellancer
0.3
A game about voxels in space
Main Page
Related Pages
Classes
Files
File List
All
Classes
Functions
Pages
keytrigger.h
1
#pragma once
2
3
#include <GL/glew.h>
4
#include <GLFW/glfw3.h>
5
6
#include "trigger.h"
7
8
9
/*
10
Triggers when the set key is pressed down after
11
the creation of this object
12
*/
13
class
KeyTrigger
:
public
Trigger
{
14
public
:
15
KeyTrigger
();
16
KeyTrigger
(
int
glfwKey);
17
18
int
key()
const
;
19
void
setKey(
int
glfwKey);
20
21
virtual
void
update(
float
deltaSec)
override
;
22
23
24
protected
:
25
int
m_glfwKey;
26
int
m_lastState;
27
};
28
KeyTrigger
Definition:
keytrigger.h:13
Trigger
Definition:
trigger.h:11
src
utils
statemachine
keytrigger.h
Generated on Sun Mar 30 2014 13:32:32 for Voxellancer by
1.8.6