Created
November 24, 2022 03:47
-
-
Save flushpot1125/dbd0b05a2e87925c9376eccf1036566b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scene.onKeyboardObservable.add((kbInfo) => { | |
switch (kbInfo.type) { | |
case BABYLON.KeyboardEventTypes.KEYDOWN: | |
switch (kbInfo.event.key) { | |
case "a": | |
console.log("hit"); | |
beta = beta -10; | |
UI.showProgressBar(beta); | |
break | |
} | |
break; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment