|
10 | 10 | // [X] Platform: Gamepad support. |
11 | 11 | // [X] Platform: Mouse cursor shape and visibility (ImGuiBackendFlags_HasMouseCursors). Disable with 'io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange'. |
12 | 12 | // [X] Platform: IME support. |
13 | | -// Missing features or Issues: |
14 | | -// [ ] Missing ImGuiMouseCursor_Wait and ImGuiMouseCursor_Progress cursors. |
15 | 13 |
|
16 | 14 | // You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. |
17 | 15 | // Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. |
|
31 | 29 |
|
32 | 30 | // CHANGELOG |
33 | 31 | // (minor and older changes stripped away, please see git history for details) |
| 32 | +// 2025-06-27: Added ImGuiMouseCursor_Wait and ImGuiMouseCursor_Progress mouse cursor support. |
34 | 33 | // 2025-06-12: ImGui_ImplOSX_HandleEvent() only process event for window containing our view. (#8644) |
35 | 34 | // 2025-03-21: Fill gamepad inputs and set ImGuiBackendFlags_HasGamepad regardless of ImGuiConfigFlags_NavEnableGamepad being set. |
36 | 35 | // 2025-01-20: Removed notification observer when shutting down. (#8331) |
@@ -110,6 +109,7 @@ + (id)_windowResizeNorthWestSouthEastCursor; |
110 | 109 | + (id)_windowResizeNorthEastSouthWestCursor; |
111 | 110 | + (id)_windowResizeNorthSouthCursor; |
112 | 111 | + (id)_windowResizeEastWestCursor; |
| 112 | ++ (id)busyButClickableCursor; |
113 | 113 | @end |
114 | 114 |
|
115 | 115 | /** |
@@ -431,6 +431,7 @@ bool ImGui_ImplOSX_Init(NSView* view) |
431 | 431 | bd->MouseCursors[ImGuiMouseCursor_ResizeNESW] = [NSCursor respondsToSelector:@selector(_windowResizeNorthEastSouthWestCursor)] ? [NSCursor _windowResizeNorthEastSouthWestCursor] : [NSCursor closedHandCursor]; |
432 | 432 | bd->MouseCursors[ImGuiMouseCursor_ResizeNWSE] = [NSCursor respondsToSelector:@selector(_windowResizeNorthWestSouthEastCursor)] ? [NSCursor _windowResizeNorthWestSouthEastCursor] : [NSCursor closedHandCursor]; |
433 | 433 | bd->MouseCursors[ImGuiMouseCursor_Hand] = [NSCursor pointingHandCursor]; |
| 434 | + bd->MouseCursors[ImGuiMouseCursor_Wait] = bd->MouseCursors[ImGuiMouseCursor_Progress] = [NSCursor respondsToSelector:@selector(busyButClickableCursor)] ? [NSCursor busyButClickableCursor] : [NSCursor arrowCursor]; |
434 | 435 | bd->MouseCursors[ImGuiMouseCursor_NotAllowed] = [NSCursor operationNotAllowedCursor]; |
435 | 436 |
|
436 | 437 | // Note that imgui.cpp also include default OSX clipboard handlers which can be enabled |
|
0 commit comments