Adds cross-platform pointer input to UEFN with Verse Enhanced Input: TouchMapping, PointerSelect, PointerZoom, swipe and tap gestures, screen deprojection and world traces. Use when a UI or world interaction must work on mouse, touch and controller-derived pointers.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Virtualpointer?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/mimmo-the-root-virtualpointer)
---
name: virtualpointer
description: Adds cross-platform pointer input to UEFN with Verse Enhanced Input: TouchMapping, PointerSelect, PointerZoom, swipe and tap gestures, screen deprojection and world traces. Use when a UI or world interaction must work on mouse, touch and controller-derived pointers.
---
# Virtual pointer input
## Result
One pointer path serves every platform. Touch and mouse events are mapped into the same Verse actions, taps and pinches are recognised explicitly, and a screen position becomes a world position only through a deprojection and trace. Controller focus stays separate so the pointer never steals menu navigation.
## When to use
- A widget, actor or world target must be selectable by mouse or touch.
- A map needs pinch zoom, swipe, tap-to-select or drag-to-rotate.
- A cross-platform UI must not fork into separate touch and desktop code.
**When not to use:** keyboard/gamepad-only menus (use the normal Enhanced Input focus path), plain click events on a single platform, or camera changes with no pointer (use `camera-audio-uefn`).
## Workflow
1. List the gestures the feature actually needs. Add only those mappings to TouchMapping.
2. Bind `PointerSelect` for press/release/click and `PointerZoom` for pinch scale; do not read raw touch counts.
3. Remember that touch pinch values arrive about 50x larger than desktop wheel values. Normalise once at the input boundary.
4. Distinguish tap from drag with a small movement and time threshold before the action fires.
5. For world selection, deproject the screen position to a ray, trace against the intended channel, then validate the hit.
6. Keep hover previews cosmetic and server-authoritative changes behind the confirmed select event.
7. Give every pointer action a keyboard/gamepad equivalent before calling the screen cross-platform.
8. Test with touch emulation and with a real pointer; a passing mouse test is not proof for touch.
## Errors (symptom, cause, remedy)
- **Pinch zooms past the limit instantly:** raw touch scale was used. Normalise by the known 50x factor and clamp.
- **Tap fires after a drag:** no movement threshold. Add one before committing the select.
- **Click hits the wrong actor:** screen position was used as world position. Deproject and trace.
- **Touch works but controller focus is lost:** pointer action consumed navigation. Keep the two action maps separate.
- **Two players select the same object:** the select was handled on both clients. Send the confirmed choice to the server.
## See also
`verse`, `game-ui-designer`, `uefn-ui-widgets`, `camera-audio-uefn`, `uefn-session-regression`