Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Added SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS to the documentation …
Browse files Browse the repository at this point in the history
…for the joystick and game controller APIs
  • Loading branch information
slouken committed Jul 3, 2013
1 parent 104a870 commit c30be4d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/SDL_gamecontroller.h
Expand Up @@ -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 */
Expand Down
4 changes: 4 additions & 0 deletions include/SDL_joystick.h
Expand Up @@ -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 */
Expand Down

0 comments on commit c30be4d

Please sign in to comment.