This is a "cheat sheet" for "window_mouse_queue" extension by YellowAfterlife.

The extension can be found on itch.io

The source code can be found on GitHub.

Click on sections to expand/collapse them.
Quick display controls: Categories · Sections · Everything ·

window_mouse_queue_init()

Call before using other functions!

window_mouse_queue_get(xlist, ylist, ?timelist)​

Adds mouse coordinates since the last call to the two provided ds_lists.

timelist (optional) is populated with timestamps of unspecific precision.

Returns the number of items added.

Note that this does not clear the lists before adding new items!

window_mouse_queue_clear()

Discards the accumulated coordinates without returning them.

If you aren't going to do anything with coordinates for this frame, you should call this function to avoid coordinate build-up.

window_mouse_queue_get_count()​

Returns the number of position currently in the queue.

window_mouse_queue_get_x(ind)​

Returns X coordinate of a position in the queue.

window_mouse_queue_get_y(ind)​

Returns Y coordinate of a position in the queue.

window_mouse_queue_get_time(ind)​

Returns the timestamp of a position in the queue.