SMALL LIBRARY. ANOTHER WAY IN.
The web,
within reach.
Give your interface a gamepad.
Keep your markup. Keep your framework.
npm install gamepadifyVanilla JS / Angular / React / Vue / jQuery
01 THE PLAYGROUND
YOUR COLLECTION
Small worlds.
QUICK GUIDE
Your controls
- Left stick
- Move between items
- A
- Select an item
- B
- Go back
- X
- Show these controls
- Y
- Shuffle the collection
- LB
- Open or close the menu
A small place to wander.
6 worldsPick a route. Each one brings three worlds together.
Worlds you have opened this session.
0 / 6 visitedWaiting for a controllerGAMEPAD API
A few attributes. That's it.
HTML + JAVASCRIPT<button data-gamepad="xbox:lb">Menu</button>
<button data-gamepad-focusable>Explore</button>
const pad = createGamepadify({
navigation: { confirm: 'xbox:a' },
showHints: true,
});
pad.start();xbox:a, ps:cross and switch:b all describe the bottom face button — south in the platform-neutral API. Prompts use your controller’s symbols.
Under the hood
EVENT LOG- READY Waiting for input.
01
Your framework stays yours.
A dependency-free core. Thin adapters. Public APIs and ordinary DOM events.
02
Focus has a direction.
The stick follows the layout, including scrollable containers and scoped dialogs.
03
Ambiguity gets noticed.
Conflicting actions stop and explain themselves. Chords take precedence over single presses.