Skip to content
Schemory
Skill

melonjs-input

Use this skill for keyboard, pointer, mouse, touch and gamepad input in melonJS. Covers the bindKey action indirection, registerPointerEvent on regions, the isKinematic requirement that silently blocks pointer events, which of several overlapping objects receives an event and how to consume it, world vs screen pointer coordinates, pointer events on 3D meshes, and gamepad mapping onto the same actions. Triggers on: input, bindKey, isKeyPressed, KEY, bindPointer, mouse button, vibrateGamepad, rumble, activeGamepad, registerPointerEvent, releasePointerEvent, pointerdown, pointerup, pointermove, POINTERMOVE, gamepad, bindGamepad, triggerKeyEvent, virtual gamepad, touch controls, joystick, gamepad-plugin, floating stick, floating button, floating joystick, two thumbs, tap to fire, hideAtRest, mobile controls, KEYDOWN, KEYUP, press any key, splash screen, click, touch, drag, POINTERUP, hit test, event propagation, stop propagating, overlapping, which object gets the click, click a mesh, hit3d, 3D picking.

Listed from its GitHub repository. Reports from people who tried it will appear here.

Source
melonjs/melonJS
GitHub stars
6,517
License
MIT

No reports yet

Nobody has written down how melonjs-input works with their agent. Tried it? Say whether it worked, and with which agent and model.

Write the first report