summaryrefslogtreecommitdiffstats
path: root/src/skel/glfw
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 20:19:10 +0100
commita216bb56ee5877ec21ac22fdf1f7ffcb2fccde87 (patch)
tree9da8df9a6ffbd870a888cbfa11e35407747f8f68 /src/skel/glfw
parentClean up POSIX streaming code (diff)
downloadre3-a216bb56ee5877ec21ac22fdf1f7ffcb2fccde87.tar
re3-a216bb56ee5877ec21ac22fdf1f7ffcb2fccde87.tar.gz
re3-a216bb56ee5877ec21ac22fdf1f7ffcb2fccde87.tar.bz2
re3-a216bb56ee5877ec21ac22fdf1f7ffcb2fccde87.tar.lz
re3-a216bb56ee5877ec21ac22fdf1f7ffcb2fccde87.tar.xz
re3-a216bb56ee5877ec21ac22fdf1f7ffcb2fccde87.tar.zst
re3-a216bb56ee5877ec21ac22fdf1f7ffcb2fccde87.zip
Diffstat (limited to 'src/skel/glfw')
-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 aab78c6d..97a77827 100644
--- a/src/skel/glfw/glfw.cpp
+++ b/src/skel/glfw/glfw.cpp
@@ -1448,7 +1448,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)
@@ -1459,7 +1459,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);
}
}