mirror of
https://github.com/bradgrantham/apple2e.git
synced 2025-08-15 15:27:22 +00:00
Key repeat, fixes #21
This commit is contained in:
@@ -905,7 +905,7 @@ static void key(GLFWwindow *window, int key, int scancode, int action, int mods)
|
|||||||
event_queue.push_back({KEYDOWN, CAPS_LOCK});
|
event_queue.push_back({KEYDOWN, CAPS_LOCK});
|
||||||
}
|
}
|
||||||
|
|
||||||
if(action == GLFW_PRESS) {
|
if(action == GLFW_PRESS || action == GLFW_REPEAT ) {
|
||||||
if(key == GLFW_KEY_RIGHT_SUPER || key == GLFW_KEY_LEFT_SUPER)
|
if(key == GLFW_KEY_RIGHT_SUPER || key == GLFW_KEY_LEFT_SUPER)
|
||||||
super_down = true;
|
super_down = true;
|
||||||
else if(super_down && key == GLFW_KEY_V) {
|
else if(super_down && key == GLFW_KEY_V) {
|
||||||
|
Reference in New Issue
Block a user