mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
BlocksRenderer light conpressing & fix
This commit is contained in:
parent
b472626d8d
commit
13a9641392
3 changed files with 28 additions and 11 deletions
|
|
@ -38,6 +38,7 @@ void mouse_button_callback(GLFWwindow*, int button, int action, int) {
|
|||
}
|
||||
|
||||
void key_callback(GLFWwindow*, int key, int scancode, int action, int /*mode*/) {
|
||||
if (key == GLFW_KEY_UNKNOWN) return;
|
||||
if (action == GLFW_PRESS) {
|
||||
Events::_keys[key] = true;
|
||||
Events::_frames[key] = Events::_current;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue