Commit Graph

13 Commits

Author SHA1 Message Date
User
b848bb0141 added nk_sdl_handle_grab declarations to demo/sdl_*/ headers 2024-05-17 08:13:14 +00:00
paccer
56ab9d96ea Added comment to nk_sdl_handle_grab in SDL demos
Explains call order of SDL_SetRelativeMouseMode and SDL_SetWindowGrab
2024-02-23 20:39:08 +01:00
paccer
a10eb1351a Fix cursor warping to center on older SDL versions
Reverted the order of the SDL_WarpMouseInWindow and SDL_GetMouseState
to its original sequence.
This avoids cursor warping to the center of screen on older SDL versions
It causes an additional SDL_MOUSEMOTION event when ungrabbing, but does
not cause any issues.
2024-02-10 17:21:32 +01:00
paccer
e3b0f24626 Fix missed grab state changes in SDL demos
Move grab handling out of `nk_sdl_handle_event` to `nk_sdl_handle_grab`,
which is now called outside of the event loop.
This change makes the logic similar to the GLFW demos and fixes issues
with missed grab state changes and mouse cursor disappearing.
2024-02-10 03:03:16 +01:00
b-aaz
fb474874db Added required includes to the platform headers .
Added missing include decelerations and in one case removed an unnecessary
one form the platform headers in the demo/ directory .
2024-01-20 16:16:45 +03:30
Rob Loach
ca49016428
Rename more null variables to tex_null 2022-07-30 17:45:12 -04:00
Rob Loach
54fd67bddd
Rename additional .null variables 2022-07-30 17:43:46 -04:00
Rob Loach
ec4acc7cf4
Rename the null variable to tex_null 2022-07-30 17:38:10 -04:00
lib-omar
43b5e82748
Favor switch over if-else chain in event handler. 2022-01-29 14:15:02 -05:00
Wladislav Artsimovich
1e4eacca2e change NK_MEMSET to memset(), because NK_MEMSET is NK internal 2021-06-18 16:19:49 +02:00
Zane Ashby
9818f642da Fix memory leak in demo and example code.
Clear cmds nk_buffer after each frame to stop it growing over time.
2020-04-12 01:40:09 +12:00
Vincent Torri
1fdf7828af demos: fix typo (clipbard --> clipboard) 2018-09-15 06:52:10 +02:00
DeXP
cc8556533f Open GL ES 2 demo
Can be used on: Linux, Mac OS X, Android, Emscripten
2017-10-01 14:10:57 +02:00