Hyperlaunch / useVirtualCursor

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.

Up Arrow Key
Left Arrow Key
Down Arrow Key
Right Arrow Key

Use the arrow keys to move the cursor, and enter to click.

Try it on the buttons below: navigate to one with the arrow keys and hit enter.

Code and examples on Github