fixed a bug caused by lwjgl3 where Ctrl-<alph> won't be recognised

This commit is contained in:
minjaesong
2021-09-23 22:30:28 +09:00
parent f26b9bc9b1
commit 96e23d9019
5 changed files with 126 additions and 75 deletions

View File

@@ -0,0 +1,11 @@
function hitCtrlQ(keys) {
return (keys[0] == 45 && (keys[1] == 129 || keys[1] == 130));
}
println("Hit Ctrl+Shift+T+R to exit")
while (true) {
con.scankeys((char, keys, counter) => {
println(`${keys}\t'${char}' (${counter})`)
})
}