summaryrefslogtreecommitdiff
path: root/plugins/dfinput/xkb.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/dfinput/xkb.c')
-rw-r--r--plugins/dfinput/xkb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/dfinput/xkb.c b/plugins/dfinput/xkb.c
index 4ac6f868..bfadef10 100644
--- a/plugins/dfinput/xkb.c
+++ b/plugins/dfinput/xkb.c
@@ -54,7 +54,7 @@ void CheckKeyboard() {
}
}
}
- if (!found) {
+ if (!found && !AnalogKeyPressed(Key)) {
g.KeyLeftOver = Key;
}
return;
@@ -70,7 +70,7 @@ void CheckKeyboard() {
}
}
}
- if (!found) {
+ if (!found && !AnalogKeyReleased(Key)) {
g.KeyLeftOver = ((long)Key | 0x40000000);
}
break;