StaticmouseCurrent mouse x position in world space.
StaticmouseCurrent mouse y position in world space.
StaticaddAdds a global click listener that will be called when the canvas is clicked.
The function to run when a click occurs.
Staticinitinitialises input event listeners.
StaticisChecks if a specific key is currently held down.
The key to check (e.g., 'w', 'ArrowUp', ' ').
StaticremoveRemoves a global click listener.
The function to remove.
Handles mouse and keyboard input events.