Binds mouse events to events on the actor. MouseControlSystem dispatches the bound event when the mouse event happens anywhere in the game window. It does not check whether the pointer is over the actor.
Mouse control
Creates a new MouseControl component.
Configuration for the mouse control
Optional
The actor that has this component. It is undefined until the component is added to an actor.
undefined
Input event bindings
Returns the component of the same class on the parent actor.
The component, or undefined if the actor has no parent actor or the parent has no such component.
Binds mouse events to events on the actor. MouseControlSystem dispatches the bound event when the mouse event happens anywhere in the game window. It does not check whether the pointer is over the actor.
See
Mouse control