Make sure to call SimpledisplayBackend.poll() *after* the Fluid draw call, and only do it once per frame,
other Fluid might not be able to keep itself up to date with latest events.
Please note Fluid will register its own event handlers, so if you
intend to use them, you should make sure to call whatever value was set previously.
autooldMouseHandler = window.handleMouseEvent;
window.handleMouseEvent = (MouseEventevent) {
oldMouseHandler(event);
// ... do your stuff ...
};
Initialize the backend using the given window.
Make sure to call SimpledisplayBackend.poll() *after* the Fluid draw call, and only do it once per frame, other Fluid might not be able to keep itself up to date with latest events.
Please note Fluid will register its own event handlers, so if you intend to use them, you should make sure to call whatever value was set previously.
Gamepad input is not supported for simpledisplay.