Voxellancer  0.3
A game about voxels in space
 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 
Definition: keytrigger.h:13
Definition: trigger.h:11