onCharInput(action: (ch: string)=>void): KEventController

Register an event that runs when user inputs text.

paramaction- The function to run when the event is triggered.

// type into input
onCharInput((ch) => {
    input.text += ch
})

returnsThe event controller.

sincev2000.1

kaplay logo

Misc

Layer