From c30be4d22d6670b03e529ae7b88174696c865659 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 3 Jul 2013 12:31:40 -0700 Subject: [PATCH] Added SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS to the documentation for the joystick and game controller APIs --- include/SDL_gamecontroller.h | 4 ++++ include/SDL_joystick.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/include/SDL_gamecontroller.h b/include/SDL_gamecontroller.h index b2e35fb89..e55749ce3 100644 --- a/include/SDL_gamecontroller.h +++ b/include/SDL_gamecontroller.h @@ -44,6 +44,10 @@ extern "C" { * In order to use these functions, SDL_Init() must have been called * with the ::SDL_INIT_JOYSTICK flag. This causes SDL to scan the system * for game controllers, and load appropriate drivers. + * + * If you would like to receive controller updates while the application + * is in the background, you should set the following hint before calling + * SDL_Init(): SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS */ /* The gamecontroller structure used to identify an SDL game controller */ diff --git a/include/SDL_joystick.h b/include/SDL_joystick.h index f568f9bd8..266740348 100644 --- a/include/SDL_joystick.h +++ b/include/SDL_joystick.h @@ -54,6 +54,10 @@ extern "C" { * In order to use these functions, SDL_Init() must have been called * with the ::SDL_INIT_JOYSTICK flag. This causes SDL to scan the system * for joysticks, and load appropriate drivers. + * + * If you would like to receive joystick updates while the application + * is in the background, you should set the following hint before calling + * SDL_Init(): SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS */ /* The joystick structure used to identify an SDL joystick */