Vis 2
Kinetic Visualization for 3D shape and structure
 All Classes Namespaces Functions Pages
InputHandler.h
1 //Author: Christian Hafner
2 //Author: Kevin Streicher
3 #pragma once
4 #include <glfw/glfw3.h>
5 
6 
11 {
12 public:
13  static void Initialize();
17  static void Update();
18  static bool KeyDown[349];
19 private:
20  static bool ButtonDown[GLFW_MOUSE_BUTTON_LAST];
21  static int ButtonPressed[GLFW_MOUSE_BUTTON_LAST];
22  static int ButtonReleased[GLFW_MOUSE_BUTTON_LAST];
23 
24 
25  static int KeyPressed[349];
26  static int KeyReleased[349];
27 
28  static void MouseButtonCallback(GLFWwindow* window, int button, int action, int mods);
29  static void KeyCallback(GLFWwindow* window, int key, int scancode, int action, int mods);
30 
31 
35  static bool IsMouseDown(int button);
39  static bool IsMousePressed(int button);
43  static bool IsMouseReleased(int button);
44 
48  static bool IsKeyDown(int key);
52  static bool IsKeyPressed(int key);
56  static bool IsKeyReleased(int key);
57 
58  InputHandler();
59 };
60 
Definition: InputHandler.h:10
static void Update()
Definition: InputHandler.cpp:97