sparkle-engine

Interface IInputEvents

interface IInputEvents {
    onKeyDown: ((key) => void);
    onKeyPress: ((key) => void);
    onKeyPressRepeat: ((key) => void);
    onKeyRelease: ((key) => void);
}

Properties

onKeyDown: ((key) => void)

Type declaration

    • (key): void
    • Parameters

      • key: string

      Returns void

onKeyPress: ((key) => void)

Type declaration

    • (key): void
    • Parameters

      • key: string

      Returns void

onKeyPressRepeat: ((key) => void)

Type declaration

    • (key): void
    • Parameters

      • key: string

      Returns void

onKeyRelease: ((key) => void)

Type declaration

    • (key): void
    • Parameters

      • key: string

      Returns void