Skip to content

Instantly share code, notes, and snippets.

@flushpot1125
Created November 24, 2022 03:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flushpot1125/dbd0b05a2e87925c9376eccf1036566b to your computer and use it in GitHub Desktop.
Save flushpot1125/dbd0b05a2e87925c9376eccf1036566b to your computer and use it in GitHub Desktop.
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