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 1121

Summary: More than one device through SDL_JOYSTICK_DEVICE
Product: SDL Reporter: Chusslove Illich <caslav.ilic>
Component: joystickAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: enhancement    
Priority: P2    
Version: HG 2.0   
Hardware: x86_64   
OS: Linux   
Attachments: Patch for 1.2 branch.
Patch for 1.3 branch.

Description Chusslove Illich 2011-02-13 04:30:28 UTC
Currently SDL_JOYSTICK_DEVICE environment variable can be used to add
exactly one topmost device. I think it would be nice if one could also set
several devices (e.g. a stick and a throttle) in this way, as a colon-
separated list. The attached patch implements this (one for 1.2, another for
1.3, due to cleaned up whitespace style). I have tested it not by building
either branch from the repo, but by rebuilding Debian's 1.2.14 package.

(I've sought to update the documentation as well, but the only mention of
this variable is in docs/html/sdlenvvars.html in 1.2, which is auto-
generated from something outside of the repo, and nowhere in 1.3.)
Comment 1 Chusslove Illich 2011-02-13 04:31:31 UTC
Created attachment 571 [details]
Patch for 1.2 branch.
Comment 2 Chusslove Illich 2011-02-13 04:31:51 UTC
Created attachment 572 [details]
Patch for 1.3 branch.
Comment 3 Sam Lantinga 2011-02-16 04:47:23 UTC
Thank you very much for your patch for SDL 1.3!

Do you give me permission to release your code with SDL 1.3 and future
versions of SDL under both the LGPL and a closed-source commercial
license?
Comment 4 Chusslove Illich 2011-02-16 11:40:41 UTC
Yes, I do give permission to release my code under the stated conditions.

Thank you for including the feature!
Comment 5 Sam Lantinga 2011-02-16 11:54:50 UTC
Your patch is in, thank you very much!
http://hg.libsdl.org/SDL/rev/901a9e9ff0b7