PsyTask | API Docs
System
Light
Dark
Search…
Preparing search index...
@psytask/core
SceneEventMap
Type Alias SceneEventMap
SceneEventMap
:
HTMLElementEventMap
&
{
"scene:close"
:
void
;
"scene:frame"
:
number
;
"scene:show"
:
LooseObject
;
}
&
{
[
K
in
`
mouse:
${
"left"
|
"middle"
|
"right"
|
"unknown"
}
`
]
:
MouseEvent
}
&
{
[
K
in
`
key:
${
string
}
`
]
:
KeyboardEvent
}
Scene lifecycle and root element event name-value pairs.
name
trigger timing
scene:show
the scene is shown
scene:frame
on each frame when the scene is shown
scene:close
the scene is closed
mouse:left
the left mouse button is pressed
mouse:middle
the middle mouse button is pressed
mouse:right
the right mouse button is pressed
mouse:unknown
an unknown mouse button is pressed
key:<key>
a
key
is pressed
<HTMLElement-Event>
an
HTML Element event
is triggered
PsyTask | API Docs
Loading...
Scene lifecycle and root element event name-value pairs.