[nostalgia/core/glfw] Cleanup
This commit is contained in:
parent
aa4a1a9011
commit
14cddf3d36
@ -32,12 +32,8 @@ static void handleKeyPress(Context *ctx, int key) {
|
|||||||
|
|
||||||
static void handleGlfwKeyEvent(GLFWwindow *window, int key, int, int action, int) {
|
static void handleGlfwKeyEvent(GLFWwindow *window, int key, int, int action, int) {
|
||||||
const auto ctx = static_cast<Context*>(glfwGetWindowUserPointer(window));
|
const auto ctx = static_cast<Context*>(glfwGetWindowUserPointer(window));
|
||||||
switch (action) {
|
if (action == GLFW_PRESS) {
|
||||||
case GLFW_PRESS:
|
handleKeyPress(ctx, key);
|
||||||
handleKeyPress(ctx, key);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user