8000 native/macos: Added support for CursorIcon::NESWResize and CursorIcon::NWSEResize by Pewnack · Pull Request #625 · not-fl3/miniquad · GitHub
[go: up one dir, main page]

Skip to content

native/macos: Added support for CursorIcon::NESWResize and CursorIcon::NWSEResize - #625

Merged
not-fl3 merged 1 commit into
not-fl3:masterfrom
Pewnack:macos_cursoricon
May 20, 2026
Merged

not-fl3 merged 1 commit into
not-fl3:masterfrom
Pewnack:macos_cursoricon

Conversation

@Pewnack
@Pewnack Pewnack commented Apr 25, 2026
Copy link
Copy Markdown
Contributor

On macOS cursor icons CursorIcon::NESWResize and CursorIcon::NWSEResize were not supported. Added support for it.
These cursor icons are not officially supported, but there is an undocumented API for it.

The code for it was basically already there. In apple_util.rs there already is a function load_undocumented_cursor. This function was not entirely correct though and caused a panic. It needed only a small change to make it work. It now tries to set the undocumented cursor and falls back to the default cursor if it doesn't exist.

Cursor icons can be tested with miniquad example program mouse_cursor:

cargo run --example mouse_cursor

Press keys q to set NESWResize or w to set the NWSEResize icon.

Closes not-fl3/macroquad#1030

@not-fl3
not-fl3 commented May 20, 2026
Copy link
Copy Markdown
Owner

Thanks for PR!

@not-fl3
not-fl3 merged commit 8006516 into not-fl3:master May 20, 2026
11 checks passed
@Pewnack
Pewnack deleted the macos_cursoricon branch May 21, 2026 07:53
@Pewnack
Pewnack commented May 21, 2026
Copy link
Copy Markdown
Contributor Author

Thanks for the merge!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CursorIcon::NESWResize and CursorIcon::NWSEResize work on Macos with set_mouse_cursor

2 participants

0