Bug 4917 - Allow joystick to be selected in UI by name
Status: RESOLVED FIXED
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Misc
Version: GIT MASTER
Hardware: All All
: P3 enhancement
Assignee: Zachary J. Slater
QA Contact: ioquake3 bugzilla mailing list
URL:
Depends on:
Blocks:
 
Reported: 2011-03-04 00:22 EST by Zack Middleton
Modified: 2011-03-07 17:58:44 EST
1 user (show)

See Also:


Attachments
Adds Joystick select menu. (19.26 KB, patch)
2011-03-04 00:22 EST, Zack Middleton

Description Zack Middleton 2011-03-04 00:22:16 EST
Created attachment 2624 [details]
Adds Joystick select menu.

Allow joystick to be selected in UI by name, instead of requiring users to use developer mode to list joysticks at startup in console and manually setting joystick number.

The patch builds a list of available joysticks in the engine and saves them in a cvar (in_availableJoysticks), like done with video modes. Replaces 'enable joystick' bool in q3_ui controls menu with a 'select joystick' menu. Also replaces joy_threshold in q3_ui with in_joystickThreshold (which is used by ioq3).
Comment 1 Thilo Schulz 2011-03-07 17:58:44 EST
I'm sorry, I don't really like the new joystick menu. It's really not consistent with the rest of the menu design. I added your idea of in_availableJoysticks though, with the only difference that Joysticks are now separated by newlines, just like s_alAvailableDevices. We should make this consistent. Anyways, the rest is up to mod designers.