STACKS
As of +30 days +90 days +1 year
small-2d-browser-game c22
checked on 30 Nov 2026
valid until 29 Jan 2027

LittleJS has a built-in on-screen touch gamepad (a stick and buttons), handled by the ordinary gamepad functions.

In the source's words

Once enabled, an analog stick and face buttons appear on touch devices, and the regular gamepad input functions (`gamepadIsDown`, `gamepadStick`) work normally

Address

stacks.jakubdudek.com/small-2d-browser-game/c22
In a document: [[small-2d-browser-game#c22]]
JSON