[nostalgia/core/glfw] Increase uninterruptedRefreshes from user input to 25
This commit is contained in:
parent
7434d949e7
commit
8e956c68b3
@ -71,7 +71,7 @@ static void handleGlfwCursorPosEvent(GLFWwindow*, double, double) noexcept {
|
|||||||
|
|
||||||
static void handleGlfwMouseButtonEvent(GLFWwindow *window, int, int, int) noexcept {
|
static void handleGlfwMouseButtonEvent(GLFWwindow *window, int, int, int) noexcept {
|
||||||
const auto ctx = static_cast<Context*>(glfwGetWindowUserPointer(window));
|
const auto ctx = static_cast<Context*>(glfwGetWindowUserPointer(window));
|
||||||
ctx->uninterruptedRefreshes = 15;
|
ctx->uninterruptedRefreshes = 25;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void handleGlfwWindowResize(GLFWwindow*, int, int) noexcept {
|
static void handleGlfwWindowResize(GLFWwindow*, int, int) noexcept {
|
||||||
@ -79,7 +79,7 @@ static void handleGlfwWindowResize(GLFWwindow*, int, int) noexcept {
|
|||||||
|
|
||||||
static void handleGlfwKeyEvent(GLFWwindow *window, int key, int, int action, int) noexcept {
|
static void handleGlfwKeyEvent(GLFWwindow *window, int key, int, int action, int) noexcept {
|
||||||
const auto ctx = static_cast<Context*>(glfwGetWindowUserPointer(window));
|
const auto ctx = static_cast<Context*>(glfwGetWindowUserPointer(window));
|
||||||
ctx->uninterruptedRefreshes = 15;
|
ctx->uninterruptedRefreshes = 25;
|
||||||
if (action == GLFW_PRESS) {
|
if (action == GLFW_PRESS) {
|
||||||
handleKeyPress(ctx, key, true);
|
handleKeyPress(ctx, key, true);
|
||||||
} else if (action == GLFW_RELEASE) {
|
} else if (action == GLFW_RELEASE) {
|
||||||
|
Loading…
Reference in New Issue
Block a user