Skip to content

Commit

Permalink
Fix silly keypress await bug (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
jblebrun authored Sep 9, 2024
1 parent f525b6e commit 3ba1315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/com/emerjbl/ultra8/Chip8.kt
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class Chip8(val gfx: Chip8Graphics, timeSource: TimeSource) {
var pressed = firstPressedKey()
lock.withLock {
while (pressed < 0) {
condition.signal()
condition.await()
pressed = firstPressedKey()
}
}
Expand Down

0 comments on commit 3ba1315

Please sign in to comment.