Interface CreateInputCollectionOptions

interface CreateInputCollectionOptions {
    gamepadButtons?: readonly number[];
    joystickDirections?: readonly ("down" | "left" | "right" | "up")[];
    keyboardButtons?: readonly CreateInputCollectionOptionsKeyboardButton[];
    mouseButtons?: readonly number[];
    name: string;
}

Properties

gamepadButtons?: readonly number[]

An array of numbers that correlate to inputs on a controller

joystickDirections?: readonly ("down" | "left" | "right" | "up")[]

An array of directions that the joystick can move in

keyboardButtons?: readonly CreateInputCollectionOptionsKeyboardButton[]

An array of strings that represents different inputs on a keyboard

mouseButtons?: readonly number[]

An array of numbers that represents different inputs on a mouse

name: string