BlocksRenderer light conpressing & fix

This commit is contained in:
@clasher113
2023-11-22 19:15:26 +02:00
parent b472626d8d
commit 13a9641392
3 changed files with 28 additions and 11 deletions
+1
View File
@@ -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;