Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

On Windows and Linux, display_mouse_get_x and display_mouse_get_y poll the current mouse coordinate directly from the system, but you are still bound by when the game finishes drawing and the window contents update.

The system cursor, on other hand, is drawn on spot whenever the system sends the image to the display, so that’s always slightly ahead of what you can get by drawing in-game.