mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
GLFW-related update & -lstdc++fs
This commit is contained in:
parent
bfc7c85856
commit
086f04af39
5 changed files with 71 additions and 6 deletions
|
|
@ -12,8 +12,8 @@ float Events::x = 0.0f;
|
|||
float Events::y = 0.0f;
|
||||
bool Events::_cursor_locked = false;
|
||||
bool Events::_cursor_started = false;
|
||||
|
||||
|
||||
std::vector<uint> Events::codepoints;
|
||||
std::vector<int> Events::pressedKeys;
|
||||
|
||||
int Events::initialize(){
|
||||
_keys = new bool[1032];
|
||||
|
|
@ -61,5 +61,7 @@ void Events::pullEvents(){
|
|||
_current++;
|
||||
deltaX = 0.0f;
|
||||
deltaY = 0.0f;
|
||||
codepoints.clear();
|
||||
pressedKeys.clear();
|
||||
glfwPollEvents();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue