Options
All
  • Public
  • Public/Protected
  • All
Menu

interface game InputConfiguration

use is basically a object whose key are input name

example
{
    use: {
        isJumping : {type:"boolean", triggers:[{type:"Keyboard.key", trigger: "ArrowUp"}]},
        touch : {type:"touch",triggers:[{type:"touch"},{type:"mouse"}]}
    }
}

for keyboard key codes see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode

Summary

Properties

Properties

use

use: object

Type declaration

  • [s: string]: object
    • triggers: string[]
    • type: string