Skip to content
Back to skills

Virtualpointer

ASecurity

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.

  • 27 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added December 6, 2026
ai-agents

Works with

  • cli

Security analysis

A100/100

Scanned December 6, 2026

npx -y skills add mimmo-the-root/UEFN-dream-bot-team --skill virtualpointer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Virtualpointer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Virtualpointer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mimmo-the-root-virtualpointer/badge)](https://www.skillsdirectory.com/skills/mimmo-the-root-virtualpointer)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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`

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.