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 - Most joystick events not detected when running console
Summary: Most joystick events not detected when running console
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: joystick (show other bugs)
Version: 2.0.0
Hardware: x86_64 Windows 7
: P2 minor
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-26 14:04 UTC by fwddmovb
Modified: 2013-06-29 18:08 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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