Recursive SDL_WM_GrabInput()

I’d just like to be sure about this:

SDL_WM_GrabInput() is not recursive, and was never intended to be.


What I’m asking is, can/should I rely on
SDL_WM_GrabInput(SDL_GRAB_OFF) to instantly release input even after
N unmatched SDL_WM_GrabInput(SDL_GRAB_ON) calls?

The documentation says nothing about this at all, so I assume that
means SDL_WM_GrabInput() is not recursive. However, that logic is
mostly based on the fact that a recursive implementation is usually
extra work, implying that non-recursive would be the default behavior
of everything.


//David Olofson - Programmer, Composer, Open Source Advocate

.------- - Games, SDL examples -------.
| - 2.5D rendering engine |
| - Music/audio engine |
| - Real time scripting |
’-- - Rheology instrumentation --’