What problem does it solve?
Handling real-time input in Decentraland scenes is complex: you need reliable polling, movement control, and cursor state awareness to support fluid gameplay and interactive sequences.
Core Features & Use Cases
- System-level input polling: isTriggered and isPressed for keys and actions, enabling responsive WASD movement and multi-key combos.
- PointerLock and cursor state: detect and react to cursor capture for FPS-style control and UI interaction.
- Movement restrictions: use InputModifier to freeze or limit movement during cutscenes or guided sequences.
- World-space pointer data: access PrimaryPointerInfo for screen coordinates and world ray direction to drive interactions.
- Use Case: implement a cinematic sequence with a frozen player, then resume control, or drive a custom movement system for an NPC.
Quick Start
Use the advanced-input skill to wire up continuous input polling and movement control in your scene.