[nostalgia/core/glfw] Cleanup

This commit is contained in:
Gary Talent 2021-06-25 21:26:33 -05:00
parent aa4a1a9011
commit 14cddf3d36

View File

@ -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<Context*>(glfwGetWindowUserPointer(window));
switch (action) {
case GLFW_PRESS:
handleKeyPress(ctx, key);
break;
default:
break;
if (action == GLFW_PRESS) {
handleKeyPress(ctx, key);
}
}