diff --git a/src/nostalgia/core/glfw/core.cpp b/src/nostalgia/core/glfw/core.cpp index 0157e4df..9b6a45bd 100644 --- a/src/nostalgia/core/glfw/core.cpp +++ b/src/nostalgia/core/glfw/core.cpp @@ -32,12 +32,8 @@ static void handleKeyPress(Context *ctx, int key) { static void handleGlfwKeyEvent(GLFWwindow *window, int key, int, int action, int) { const auto ctx = static_cast(glfwGetWindowUserPointer(window)); - switch (action) { - case GLFW_PRESS: - handleKeyPress(ctx, key); - break; - default: - break; + if (action == GLFW_PRESS) { + handleKeyPress(ctx, key); } }