Skip to content

YAL-GameMaker/native_cursor

Repository files navigation

native_cursor

Native cursors for GameMaker!

Supported versions: GM2022+ and GM LTS

Supported platforms:

  • Windows
  • Linux
  • HTML5

Could possibly do Mac like this, but - isn't that a lot of code for a custom cursor

What's interesting here

Cursor management on Windows and Linux is kind of similar so I'm getting away with a bunch of #ifdefs.

The code could be shorter, but for now it is what it is.

Some things are there for a reason - for example, did you know that if you do

SetCursor(cursor);
DestroyCursor(cursor);
// ... more cleanup code 
SetCursor(NULL);

there's a very small chance that the system will access the cursor in the meantime and your application will crash? Gotta unset the cursors before destroying them.

Building

See BUILD.md

Meta

Author: YellowAfterlife
License: Custom license (see LICENSE)

About

Native cursors for GameMaker! (Windows, Linux, HTML5)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published