trying to write a new ingamecontroller so that its update can be manually controlled

This commit is contained in:
minjaesong
2021-08-21 21:03:39 +09:00
parent bb95444067
commit ca72a6fbe5
14 changed files with 214 additions and 111 deletions

View File

@@ -33,7 +33,7 @@ object KeyToggler {
* Set ```toggleGameKeys = true``` to make toggling work for keys like Q, W, E, ...; otherwise only F1-F12 keys will be toggled
*/
fun update(toggleGameKeys: Boolean) {
for (it in 0..255) {
for (it in 1..255) {
if (!toggleGameKeys && gameKeys.contains(it)) {
continue
}