KeyboardPlugin
Defined in: plugins/KeyboardPlugin.ts:33
Extends
Implements
Constructors
new KeyboardPlugin()
new KeyboardPlugin(
id
):KeyboardPlugin
Defined in: plugins/Plugin.ts:40
Parameters
id
string
= 'Plugin'
Returns
Inherited from
Properties
__dill_pixel_method_binding_root
__dill_pixel_method_binding_root:
boolean
Defined in: plugins/Plugin.ts:37
Inherited from
Plugin
.__dill_pixel_method_binding_root
id
readonly
id:string
='keyboard'
Defined in: plugins/KeyboardPlugin.ts:34
Implementation of
Overrides
onGlobalKeyDown
onGlobalKeyDown:
Signal
<(detail
) =>void
>
Defined in: plugins/KeyboardPlugin.ts:36
onGlobalKeyUp
onGlobalKeyUp:
Signal
<(detail
) =>void
>
Defined in: plugins/KeyboardPlugin.ts:37
Accessors
app
Get Signature
get app():
T
Defined in: plugins/Plugin.ts:45
Returns
T
Implementation of
Inherited from
enabled
Get Signature
get enabled():
boolean
Defined in: plugins/KeyboardPlugin.ts:50
Returns
boolean
Set Signature
set enabled(
value
):void
Defined in: plugins/KeyboardPlugin.ts:54
Parameters
value
boolean
Returns
void
Implementation of
keysDown
Get Signature
get keysDown():
Set
<string
>
Defined in: plugins/KeyboardPlugin.ts:44
Returns
Set
<string
>
Implementation of
Methods
_update()
_update():
void
Defined in: plugins/KeyboardPlugin.ts:85
Returns
void
addSignalConnection()
addSignalConnection(…
args
):void
Defined in: plugins/Plugin.ts:71
Add signal connections to the container.
Parameters
args
…SignalConnection
[]
The signal connections to add.
Returns
void
Implementation of
IKeyboardPlugin
.addSignalConnection
Inherited from
clearSignalConnections()
clearSignalConnections():
void
Defined in: plugins/Plugin.ts:77
Returns
void
Implementation of
IKeyboardPlugin
.clearSignalConnections
Inherited from
destroy()
destroy():
void
Defined in: plugins/KeyboardPlugin.ts:65
Returns
void
Implementation of
Overrides
initialize()
initialize(
_app
):void
Defined in: plugins/KeyboardPlugin.ts:59
Parameters
_app
Returns
void
Implementation of
Overrides
isKeyDown()
isKeyDown(
key
):boolean
Defined in: plugins/KeyboardPlugin.ts:81
Parameters
key
Returns
boolean
Implementation of
onKeyDown()
onKeyDown(
key
?):KeySignal
Defined in: plugins/KeyboardPlugin.ts:73
Parameters
key?
Returns
Implementation of
onKeyUp()
onKeyUp(
key
?):KeySignal
Defined in: plugins/KeyboardPlugin.ts:77
Parameters
key?
Returns
Implementation of
postInitialize()
postInitialize(
_app
):void
|Promise
<void
>
Defined in: plugins/Plugin.ts:60
Parameters
_app
Returns
void
| Promise
<void
>
Implementation of
IKeyboardPlugin
.postInitialize