Fix key state tracking regression

This commit is contained in:
Kovid Goyal 2021-01-15 13:40:27 +05:30
parent 0163bf3edb
commit c12680895e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

1
glfw/input.c vendored
View File

@ -296,6 +296,7 @@ set_key_action(_GLFWwindow *window, uint32_t key, int val, int idx) {
memset(window->activated_keys + sz - 1, 0, sizeof(window->activated_keys[0]));
}
} else {
window->activated_keys[idx].key = key;
window->activated_keys[idx].action = val;
}
}