Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for OpenFIRE lightguns #964

Merged
merged 10 commits into from
Feb 5, 2025

Conversation

SeongGino
Copy link
Contributor

OpenFIRE guns do provide a gamepad output mode as an option, but this needs to be signaled from the connected device to use the gamepad output slot (the mouse and keyboard slots effectively go unused for this platform). A small method has been added that searches for the device path of OpenFIRE lightguns and sends the needed command over serial to signal to the gun to automatically use gamepad output without any further user intervention (so no need to pre-configure from a PC).

Has been tested by me and a number of other OF users on both MiSTer Pi and DE10 systems, and shouldn't conflict with other devices as it checks for both a fixed Vendor ID and "OpenFIRE " in the product string, which is prefixed to every shipping gun's USB product name regardless of the user's custom device name appended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants