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

Can't choose default joystick device to inject into dosbox #3771

Open
2 tasks done
sabudum opened this issue Jun 15, 2024 · 2 comments
Open
2 tasks done

Can't choose default joystick device to inject into dosbox #3771

sabudum opened this issue Jun 15, 2024 · 2 comments
Labels
enhancement New feature or enhancement of existing features input handling Issues related to handling any input (keyboard, mouse, joystick & game controllers)

Comments

@sabudum
Copy link

sabudum commented Jun 15, 2024

Are you using the latest Dosbox-Staging Version?

  • I have checked releases and am using the latest release.

Different version than latest?

No response

What Operating System are you using?

Linux x86_64

If Other OS, please describe

No response

Is your feature request related to a problem? Please describe.

When using multiple joysticks on the same machine, it's impossible to choose which one will be injected into dosbox, only the first one is injected, this makes it impossible to use virtual controllers generated by programs such as input-remapper, MoltenGamepad or similar.

Describe the solution you'd like

An option to set the device to be used, it could be a .conf line with the path to the device.

Describe alternatives you've considered

Couldn't find any alternative.

Add any other context or screenshots about the feature request here.

No response

Code of Conduct & Contributing Guidelines

  • Yes, I agree.
@sabudum sabudum added the enhancement New feature or enhancement of existing features label Jun 15, 2024
@johnnovak johnnovak added the input handling Issues related to handling any input (keyboard, mouse, joystick & game controllers) label Jun 15, 2024
@Torinde Torinde mentioned this issue Jun 16, 2024
1 task
@Grounded0 Grounded0 changed the title Can't choose default joystick device to inject into dosbox. Can't choose default joystick device to inject into dosbox Jun 16, 2024
@johnnovak
Copy link
Member

@weirddan455 @interloper98 Maybe adding a config option for this would be reasonable? I'm thinking of allowing the user to specify a substring of the controller's reported name, then we can do a substring search and use the first match (because numeric IDs can change when unplugging controllers; we use the same name matching mechanism to search for mididevice as you can unplug MIDI USB interfaces too).

Seems like a simple and useful enhancement to me. I have 3 controllers, and one is a composite device that reports itself as two devices, so I could definitely test this.

Proper multi controller support will have to wait until the mapper rework.

@johnnovak
Copy link
Member

Actually, wait a minute. When you remap the joy controls in the mapper, don't we handle multiple controllers already? Will have to test, but maybe setting a default controller in the config would still be desirable for the basic use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or enhancement of existing features input handling Issues related to handling any input (keyboard, mouse, joystick & game controllers)
Projects
None yet
Development

No branches or pull requests

2 participants