Class KmtInputStateMachineWebWorkerProxy

This is the template for the state machine.

You can use this class to create a state machine. Usually this is all you need for the state machine. Unless you need extra functionality. To create a state machine, just instantiate this class and pass in the states, initial state and context.

createKmtInputStateMachine for an example of how to create a state machine.

Hierarchy (View Summary)

Constructors

Properties

_context: KmtInputContext
_currentState: KmtInputStates
_happensCallbacks: (
    event: keyof KmtInputEventMapping,
    payload:
        | PointerEventPayload
        | EmptyPayload
        | ScrollEventPayload
        | ScrollWithCtrlEventPayload,
    context: KmtInputContext,
) => void[]
_stateChangeCallbacks: StateChangeCallback<KmtInputStates>[]
_statesArray: KmtInputStates[]

Accessors

Methods