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 - More than one device through SDL_JOYSTICK_DEVICE
Summary: More than one device through SDL_JOYSTICK_DEVICE
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: joystick (show other bugs)
Version: HG 2.0
Hardware: x86_64 Linux
: P2 enhancement
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-13 04:30 UTC by Chusslove Illich
Modified: 2011-02-16 11:54 UTC (History)
0 users

See Also:


Attachments
Patch for 1.2 branch. (1.51 KB, patch)
2011-02-13 04:31 UTC, Chusslove Illich
Details | Diff
Patch for 1.3 branch. (1.86 KB, patch)
2011-02-13 04:31 UTC, Chusslove Illich
Details | Diff

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