Preparing search index...
The search index is not available
@niuee/board
@niuee/board
KmtIdleState
Class KmtIdleState
The idle state of the keyboard mouse and trackpad input state machine.
Hierarchy (
View Summary
)
TemplateState
<
KmtInputEventMapping
,
KmtInputContext
,
KmtIdleStatePossibleTargetStates
,
>
KmtIdleState
Index
Constructors
constructor
Properties
_event
Guards
_guards
Accessors
event
Guards
event
Reactions
guards
Methods
handles
middle
Pointer
Down
Handler
scroll
Handler
scroll
With
Ctrl
Handler
spacebar
Down
Handler
upon
Enter
upon
Leave
Constructors
constructor
new
KmtIdleState
()
:
KmtIdleState
Returns
KmtIdleState
Properties
Protected
_event
Guards
_eventGuards
:
Partial
<
EventGuards
<
KmtInputEventMapping
,
KmtIdleStatePossibleTargetStates
,
KmtInputContext
,
Guard
<
KmtInputContext
>
,
>
,
>
= {}
Protected
_guards
_guards
:
Guard
<
KmtInputContext
,
"isIdle"
>
= { isIdle: () => true, }
Accessors
event
Guards
get
eventGuards
()
:
Partial
<
EventGuards
<
EventPayloadMapping
,
States
,
Context
,
Guard
<
Context
,
string
>
,
>
,
>
Returns
Partial
<
EventGuards
<
EventPayloadMapping
,
States
,
Context
,
Guard
<
Context
,
string
>
,
>
,
>
event
Reactions
get
eventReactions
()
:
EventReactions
<
KmtInputEventMapping
,
KmtInputContext
,
KmtIdleStatePossibleTargetStates
,
>
Returns
EventReactions
<
KmtInputEventMapping
,
KmtInputContext
,
KmtIdleStatePossibleTargetStates
,
>
guards
get
guards
()
:
Guard
<
Context
>
Returns
Guard
<
Context
>
Methods
handles
handles
<
K
extends
keyof
KmtInputEventMapping
>
(
event
:
K
,
payload
:
KmtInputEventMapping
[
K
]
,
context
:
KmtInputContext
,
)
:
KmtIdleStatePossibleTargetStates
Type Parameters
K
extends
keyof
KmtInputEventMapping
Parameters
event
:
K
payload
:
KmtInputEventMapping
[
K
]
context
:
KmtInputContext
Returns
KmtIdleStatePossibleTargetStates
middle
Pointer
Down
Handler
middlePointerDownHandler
(
context
:
KmtInputContext
,
payload
:
PointerEventPayload
,
)
:
void
Parameters
context
:
KmtInputContext
payload
:
PointerEventPayload
Returns
void
scroll
Handler
scrollHandler
(
context
:
KmtInputContext
,
payload
:
ScrollEventPayload
)
:
void
Parameters
context
:
KmtInputContext
payload
:
ScrollEventPayload
Returns
void
scroll
With
Ctrl
Handler
scrollWithCtrlHandler
(
context
:
KmtInputContext
,
payload
:
ScrollWithCtrlEventPayload
,
)
:
void
Parameters
context
:
KmtInputContext
payload
:
ScrollWithCtrlEventPayload
Returns
void
spacebar
Down
Handler
spacebarDownHandler
(
context
:
KmtInputContext
,
payload
:
EmptyPayload
)
:
void
Parameters
context
:
KmtInputContext
payload
:
EmptyPayload
Returns
void
upon
Enter
uponEnter
(
context
:
KmtInputContext
)
:
void
Parameters
context
:
KmtInputContext
Returns
void
upon
Leave
uponLeave
(
context
:
KmtInputContext
)
:
void
Parameters
context
:
KmtInputContext
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
_event
Guards
_guards
Accessors
event
Guards
event
Reactions
guards
Methods
handles
middle
Pointer
Down
Handler
scroll
Handler
scroll
With
Ctrl
Handler
spacebar
Down
Handler
upon
Enter
upon
Leave
@niuee/board
Loading...
The idle state of the keyboard mouse and trackpad input state machine.