Type

AppEventMap

: {

mouseMove

: []

mouseDown

: [MouseButton]

mousePress

: [MouseButton]

mouseRelease

: [MouseButton]

charInput

: [string]

keyPress

: [Key]

keyDown

: [Key]

keyPressRepeat

: [Key]

keyRelease

: [Key]

touchStart

: [Vec2, Touch]

touchMove

: [Vec2, Touch]

touchEnd

: [Vec2, Touch]

gamepadButtonDown

: [KGamepadButton, KGamepad]

gamepadButtonPress

: [KGamepadButton, KGamepad]

gamepadButtonRelease

: [KGamepadButton, KGamepad]

gamepadStick

: [string, Vec2, KGamepad]

gamepadConnect

: [KGamepad]

gamepadDisconnect

: [KGamepad]

buttonDown

: [string]

buttonPress

: [string]

buttonRelease

: [string]

scroll

: [Vec2]

hide

: []

show

: []

resize

: []

input

: []
}

App events with their arguments

kaplay logo

Layer

Miscalenous