Component:VirtualMultiKey: Difference between revisions

From Resonite Wiki
Automated: create new component page
 
add info.
Line 3: Line 3:
|Name=Virtual Multi Key
|Name=Virtual Multi Key
}}
}}
{{stub}}
This component when triggered by a [[Button Events|button event]] will make the user press all the keys in the multikey at the same time.


== Usage ==
== Usage ==
{{Table ComponentFields
{{Table ComponentFields
|Keys|{{RootFieldType|SyncFieldList`1|[[Type:Key|Key]]}}|TypeAdv0=true|
|Keys|{{RootFieldType|SyncFieldList`1|[[Type:Key|Key]]}}|TypeAdv0=true| A list of keys that should be simulated being pressed when receiving a [[Button Events|button event]] and they will be simulated by the source user of the button event.
}}
}}


== Behavior ==
== Behavior ==
The keys do not press in order, and keys will not be pressed more than once if listed more than once.


== Examples ==
== Examples ==
Line 18: Line 19:
[[Category:Components:Userspace:Virtual Keyboard{{#translation:}}|Virtual Multi Key]]
[[Category:Components:Userspace:Virtual Keyboard{{#translation:}}|Virtual Multi Key]]
[[Category:Components{{#translation:}}|Virtual Multi Key]]
[[Category:Components{{#translation:}}|Virtual Multi Key]]
[[Category:ComponentStubs]]

Revision as of 23:08, 16 October 2024

Component image 
Virtual Multi Key component as seen in the Scene Inspector

This component when triggered by a button event will make the user press all the keys in the multikey at the same time.

Usage

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled.
Keys direct SyncFieldList`1<Key> A list of keys that should be simulated being pressed when receiving a button event and they will be simulated by the source user of the button event.

Behavior

The keys do not press in order, and keys will not be pressed more than once if listed more than once.

Examples

See Also