aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2020-07-14 19:57:01 +0200
committerAndre Weissflog <floooh@gmail.com>2020-07-14 19:57:01 +0200
commitd9692d33a18fb4d0cd1b70f6121ac4fb7986de1b (patch)
treeb95c5879a2e72a78eaba2f5bd0ef854e2d1eddb7 /README.md
parent1ba5834dd7cf570b6b16a53921ffdc50ea87050d (diff)
sokol_app.h win32/macos: mouse cursor show/hide changes
- integrate @slmjkdbtl's sapp_mouse_shown() fix - change behaviour so that sapp_show_mouse() no longer 'stacks'
Diffstat (limited to 'README.md')
-rw-r--r--README.md16
1 files changed, 15 insertions, 1 deletions
diff --git a/README.md b/README.md
index da5d9135..8188c497 100644
--- a/README.md
+++ b/README.md
@@ -6,7 +6,7 @@ Simple
[STB-style](https://github.com/nothings/stb/blob/master/docs/stb_howto.txt)
cross-platform libraries for C and C++, written in C.
-[See what's new](#updates) (**13-Jul-2020**: ObjC ARC is now optional, plus internal cleanup
+[See what's new](#updates) (**14-Jul-2020**: macOS+Win32 show/hide mouse changes)
[Live Samples](https://floooh.github.io/sokol-html5/index.html) via WASM.
@@ -460,6 +460,20 @@ Mainly some "missing features" for desktop apps:
# Updates
+- **14-Jul-2020**:
+ - sapp_mouse_shown() has been implemented for macOS (thanks to @slmjkdbtl) for
+ providing the initial PR!
+ - On macOS, the lower-level functions CGDisplayShowCursor and CGDisplayHideCursor
+ are now used instead of the NSCursor class. This is in preparation for the
+ 'pointer lock' feature which will also use CGDisplay* functions.
+ - Calling ```sapp_show_mouse(bool visible)``` no longer 'stacks' (e.g. there's
+ no 'hidden counter' underneath anymore, instead calling ```sapp_show_mouse(true)```
+ will always show the cursor and ```sapp_show_mouse(false)``` will always
+ hide it. This is a different behaviour than the underlying Win32 and
+ macOS functions ShowCursor() and CGDisplaShow/HideCursor()
+ - The mouse show/hide behaviour can now be tested in the ```events-sapp``` sample
+ (so far this only works on Windows and macOS).
+
- **13-Jul-2020**:
- On macOS and iOS, sokol_app.h and sokol_gfx.h can now be compiled with
ARC (Automatic Reference Counting) **disabled** (previously ARC had to be