Component:VirtualShift

From Resonite Wiki
Revision as of 00:25, 17 October 2024 by 989onan (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Component image 
Virtual Shift component as seen in the Scene Inspector

Simulates pressing or holding onto the shift key on a normal physical keyboard.

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.
Keyboard direct RelayRef`1<VirtualKeyboard> The keyboard which the keys should be set or unset from the holding shift state.
HoldPressInterval Float what value _lastPress has to be below when the button is pressed again to enable AlwaysHold field.
AlwaysHold Bool Whether the user has double clicked shift and enabled a constant hold shift state.
_lastPress Double Internal, how many seconds has passed since this button was last pressed. is used to handle enabling/disabling AlwaysHold field.

Examples

Is used in the default keyboard to make the shift key function.

See Also