Tap
<Tap> is the action button beside the Joystick: jump, attack, interact. It fires on the press, not on the release, because an action is timed against the world and a release lands late. At 72 pixels it is wider than Button’s 56, since a thumb finds it by feel. It stands in the screen’s bottom-right slot, beside the stick’s corner, for a coarse pointer only; slot moves it and className styles it. A keyboard or a screen reader activates it too, and fires it once.
A binding that declares touch needs no Tap: the engine draws its button, as Touch controls says. A Tap takes one of two things:
input, a button input, a command with no fields or a page action: the Tap presses it as its key does, shows the declaration’s label and icon, and takes the place of the engine’s button for it. Its children replace the icon.hiddendraws nothing and still takes that place, which hides one button while the row stays.onTap, a function it calls on each press, withlabeland an Icon as its children.onReleaseruns once as the finger lifts, slides off or the browser takes the touch, for a control held down, such as a sprint. Such a Tap binds nothing and replaces no button.
Either kind takes look: the finger that holds the Tap turns the camera by its travel as it drags, at the camera’s touchLookSpeed, so the player keeps aiming while the button holds, as a weapon’s fire button does.
<Tap input={characters.inputs.jump} slot={Slot.Right} /> moves the player’s Jump out of the row. Its props are in TapProps. A tap on the scene itself, such as one that selects a tree, is Canvas tap’s.