Skip to content

Commit 26f76fe

Browse files
committed
can no longer reproduce bind issue
1 parent 8ca1550 commit 26f76fe

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/main/kotlin/com/lambda/util/InputUtils.kt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,6 @@ object InputUtils : Loadable {
5959
.also { lastPressedKeys.clear() }
6060
.onEach { (key, state) -> lastPressedKeys[key] = state }
6161

62-
// FixMe: If you are pressing two or more keys considered 'modifier' keys, you must release both of them at the
63-
// same time in order to receive an update stipulating that the last key (not actually a modifier) was released alongside its modifiers.
64-
// For the time being, I will allow this as players can still bind unique 'modifier' keys with no issues.
65-
66-
// FixMe: The order in which modifier keys are ordered is wrong. When a user presses Left Control + Left Alt, the user must
67-
// press Left Alt + Left Control as the modifier key in order for the event to satisfies the bind
68-
6962
val mods = pressedKeys.keys
7063
.filter { it in GLFW_KEY_LEFT_SHIFT..GLFW_KEY_RIGHT_SUPER && lastPressedKeys.keys.firstOrNull()?.equals(it) == false }
7164
.foldRight(0) { v, acc -> acc or modMap.getValue(v) }

0 commit comments

Comments
 (0)