scp-fs2open / scp-fs2open/fs2open.github.com

FR: Use joystick device name as fallback when GUID could not be found

Open
#2,849 0 comments 0 reactions 0 assignees View on GitHub
controls enhancement
Dominant language
C++
Stars
487
Forks
184
Avg merge
3d 9h
Merged PRs (30d)
44

Description

I'm not sure if this feature is even needed, but storing the name of the device in the fs2_open.ini would serve as a fallback in case the GUID of a selected device could not be found. I'm still looking for possible causes of GUID's changing, so hopefully this would only be used in extreme edge cases.

Essentially, there would be three things kept in the fs2_open.ini that concern the joystick that FSO uses.

CurrentJoystickID,
CurrentJoystickGUID, and
CurrentJoystickName

FSO would first check the GUID's of all found devices. If it finds multiple devices with the same GUID, it will then select the one with the ID.

If FSO cannot find any device with the given GUID, it then abruptly gives up. This FR would instead have FSO check the devices again and see if their names match up, then use the ID.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.