useAction
useAction(
action,actionListener):void
Runs onPress and onRelease on each press and release of action,
an engine action of engineActions or a plugin’s page action, while
the component is mounted: on its keys, wherever the game’s bindings or
controls() put them, and on its touch button. A key a focused field
owns presses nothing, nor does a chord with Ctrl, Alt or ⌘, but under
a Ctrl or an Alt the game binds itself, such as a crouch on Ctrl. As
Roblox’s ContextActionService:BindAction.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
action |
PageActionHandle |
actionListener |
ActionListener |
Returns
Section titled “Returns”void