projects
/
tar-legacy.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
bsp viewer
[tar-legacy.git]
/
MCDV
/
GLFWUtil.hpp
1
#pragma once
2
#include <GLFW\glfw3.h>
3
4
class util_keyHandler {
5
private:
6
GLFWwindow* windowHandle;
7
public:
8
bool getKeyDown(int key) {
9
if (glfwGetKey(this->windowHandle, key) == GLFW_PRESS)
10
return true;
11
}
12
13
util_keyHandler(GLFWwindow* window) {
14
this->windowHandle = window;
15
}
16
};