offalynne/Input

Mouse input cursor not updated while Gamemaker's debug overlay is open

Closed this issue · 1 comments

Issue

When enabling show_debug_overlay(), and using keyboard and mouse, the input cursor functions (input_cursor_x(), input_cursor_y() and probably others) stop working and instead return 0.

This happens with all coordinate systems.

Gamepad works fine.

Steps to replicate

Create a blank project, import Input and create a test object with a key that enables/disables the debug overlay and draws a circle using the input x,y coordinates as center.

I'm providing such project.

Input cursor bug when overlay enabled.zip

Expected behavior

When using mouse input, the Input cursor should update no matter if the debug overlay is enabled or disabled.

Thanks to alynne, they said there's this macro variable:

INPUT_DEFAULT_DEBUG_OVERLAY_BLOCKS_INPUT

So I'm closing the issue.