The useVirtualCursor
hook creates a virtual cursor that can be moved freely within the viewport
via arrow key presses, and trigger click events on elements like buttons
and links via the enter key. It's designed for environments such as touch
screen kiosks, allowing D-pad navigation to enhance accessibility without
requiring additional UI modifications.
Try it on the buttons below: navigate to one with the arrow keys and hit enter.