mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
BlocksRenderer light compressing & fix
This commit is contained in:
parent
a48af43008
commit
efdc494aaf
3 changed files with 39 additions and 22 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