This repository has been archived by the owner on Feb 11, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Joystick: Only send joy events when focused.
This changes makes it so that you only receive joystick (and implicitly gamecontroller) input events when your application has keyboard focus. If you'd like to still receive events when your application is in the background, set the SDL_JOYSTICK_ALLOW_BACKGROUND_EVENTS hint to "1". This fixes http://bugzilla.libsdl.org/show_bug.cgi?id=1892
- Loading branch information
Showing
2 changed files
with
62 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters