Added a hint to prevent SDL from installing signal handlers.

Fixes Bugzilla #2431.
This commit is contained in:
Ryan C. Gordon 2015-03-24 14:29:25 -04:00
parent 3ff618a9c7
commit d9474bba87
2 changed files with 26 additions and 1 deletions

View file

@ -546,6 +546,18 @@ extern "C" {
*/
#define SDL_HINT_EMSCRIPTEN_KEYBOARD_ELEMENT "SDL_EMSCRIPTEN_KEYBOARD_ELEMENT"
/**
* \brief Tell SDL not to handle SIGINT.
*
* This hint only applies to Unix-like platforms.
*
* The variable can be set to the following values:
* "0" - SDL will install a SIGINT handler, and when it catches the
* signal, conver it into an SDL_QUIT event.
* "1" - SDL will not install a SIGINT handler.
*/
#define SDL_HINT_DISABLE_SIGINT_HANDLER "SDL_DISABLE_SIGINT_HANDLER"
/**
* \brief An enumeration of hint priorities
*/