gamepad
Installation
SKILL.md
Vibedgames Gamepad
Add on-screen touch controls — a floating analog joystick plus action buttons — and physical controller input to any browser game with @vibedgames/gamepad. Framework-agnostic core, with drop-in adapters that wire the input and render the overlay for you: one for Phaser, one for the DOM (Three.js, canvas, anything else).
Install
npm install @vibedgames/gamepad
phaser is an optional peer dependency — only needed if you use the /phaser adapter. The core and /dom adapter have no engine dependency.
Three entry points
@vibedgames/gamepad/phaser—attachVirtualGamepad(scene, options)for Phaser games@vibedgames/gamepad/dom—attachDomGamepad(options)for everything else (Three.js, canvas, vanilla). Prefer this over the raw core.@vibedgames/gamepad— framework-agnosticVirtualGamepadclass (custom event routing / custom renderers only) andPhysicalGamepad