Skip to content

Commit b72f40e

Browse files
committed
Added new input utils fixme
1 parent 7cd0d8d commit b72f40e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ object InputUtils : Loadable {
6363
// same time in order to receive an update stipulating that the last key (not actually a modifier) was released alongside its modifiers.
6464
// For the time being, I will allow this as players can still bind unique 'modifier' keys with no issues.
6565

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+
6669
val mods = pressedKeys.keys
6770
.filter { it in GLFW_KEY_LEFT_SHIFT..GLFW_KEY_RIGHT_SUPER && lastPressedKeys.keys.firstOrNull()?.equals(it) == false }
6871
.foldRight(0) { v, acc -> acc or modMap.getValue(v) }

0 commit comments

Comments
 (0)