summaryrefslogtreecommitdiffstats
path: root/src/skel
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2021-01-27 16:26:48 +0100
committererorcun <erorcunerorcun@hotmail.com.tr>2021-01-27 16:26:48 +0100
commit8846f50cb7df6eb05df9dc7fe5208120febcb016 (patch)
tree8b20125466b2a2540b4ce13227c7c059b169fd9d /src/skel
parentClean up POSIX streaming code (diff)
downloadre3-8846f50cb7df6eb05df9dc7fe5208120febcb016.tar
re3-8846f50cb7df6eb05df9dc7fe5208120febcb016.tar.gz
re3-8846f50cb7df6eb05df9dc7fe5208120febcb016.tar.bz2
re3-8846f50cb7df6eb05df9dc7fe5208120febcb016.tar.lz
re3-8846f50cb7df6eb05df9dc7fe5208120febcb016.tar.xz
re3-8846f50cb7df6eb05df9dc7fe5208120febcb016.tar.zst
re3-8846f50cb7df6eb05df9dc7fe5208120febcb016.zip
Diffstat (limited to 'src/skel')
-rw-r--r--src/skel/glfw/glfw.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/skel/glfw/glfw.cpp b/src/skel/glfw/glfw.cpp
index 3aa070f9..9643c63b 100644
--- a/src/skel/glfw/glfw.cpp
+++ b/src/skel/glfw/glfw.cpp
@@ -1416,7 +1416,7 @@ bool rshiftStatus = false;
void
keypressCB(GLFWwindow* window, int key, int scancode, int action, int mods)
{
- if (key >= 0 && key <= GLFW_KEY_LAST) {
+ if (key >= 0 && key <= GLFW_KEY_LAST && action != GLFW_REPEAT) {
RsKeyCodes ks = (RsKeyCodes)keymap[key];
if (key == GLFW_KEY_LEFT_SHIFT)
@@ -1427,7 +1427,6 @@ keypressCB(GLFWwindow* window, int key, int scancode, int action, int mods)
if (action == GLFW_RELEASE) RsKeyboardEventHandler(rsKEYUP, &ks);
else if (action == GLFW_PRESS) RsKeyboardEventHandler(rsKEYDOWN, &ks);
- else if (action == GLFW_REPEAT) RsKeyboardEventHandler(rsKEYDOWN, &ks);
}
}