We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1930

Summary: Most joystick events not detected when running console
Product: SDL Reporter: fwddmovb
Component: joystickAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: minor    
Priority: P2    
Version: 2.0.0   
Hardware: x86_64   
OS: Windows 7   

Description fwddmovb 2013-06-26 14:04:18 UTC
When you fixed the bug 1892 "Joystick events trigger when the SDL program has no focus" by adding a check with SDL_GetKeyboardFocus, a program running in console mode only (I.E. no opened/focused window) does not receive input from the joysticks.

Since it's useful for debugging and prototyping, it would be appreciated, if possible, for the console associated the the current program to detect the input as well without having to set SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS to 1.

The expected behavior would be for the events to be generate for the focused program instead of for the focused SDL window
Comment 1 Sam Lantinga 2013-06-29 18:08:05 UTC
Fixed, thanks!
http://hg.libsdl.org/SDL/rev/5ba1fafc6a94