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, world vs screen pointer coordinates, and gamepad mapping onto the same actions. Triggers on: input, bindKey, isKeyPressed, KEY, registerPointerEvent, releasePointerEvent, pointerdown, pointerup, POINTERMOVE, gamepad, bindGamepad, triggerKeyEvent, click, touch, drag.

melonjs 56b0b58 7.5 KB Updated

File contents

melonjs/melonjs/tree/main/packages/melonjs/skills/melonjs-input commit 56b0b58e15

Frequently asked questions

npx skillmds@latest add melonjs/melonjs-input