StaticsystemThe name the configuration uses for the system.
DefineSystem sets it, so a game usually does not assign it.
StaticwithLists the system in EngineOptions.systems together with its dependencies: classes and functions from the game code that cannot live in the configuration. The system receives them as the second argument of its constructor.
The dependencies of the system.
A binding to put into EngineOptions.systems.
Listens to the mouse and sends the MouseInput event on the world.
The event has the pointer position in world coordinates and in screen pixels.
Options:
useWindow: listens onwindow.windowNodeId: the id of the element to listen on whenuseWindowis off.Put
MouseInputSystembefore MouseControlSystem and before your own systems that readMouseInput.See
Input