Hi great project !
Some questions :
1) how to switch between full screen and windowed mode ?
Adding S2D_FULLSCREEN to window->flags in an on_key function does not do the trick.
Looks like this can only be set on S2D_CreateWindow.
Must I therefore S2D_FreeWindow and create a new window with S2D_CreateWindow ?
Or is there a better option ?
2) how to get mouse scroll wheel direction and distance ?
We have the S2D_MOUSE_SCROLL event. How to read in which direction the wheel was scrolled, and how far ?
We have the normal/inverted flags
#define S2D_MOUSE_SCROLL_NORMAL SDL_MOUSEWHEEL_NORMAL
#define S2D_MOUSE_SCROLL_INVERTED SDL_MOUSEWHEEL_FLIPPED
and while this is a good thing to have, this does not change on wheel-up or down.
Is SDL_MouseWheelEvent struct exposed somewhere ? Looks like that has the needed info.
3) I wrote a simple CMake config. Would this be interesting for others ?
-- Hans