This repository has been archived by the owner. It is now read-only.
Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
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
with
62 additions
and 1 deletion.
- +14 −0 include/SDL_hints.h
- +48 −1 src/joystick/SDL_joystick.c