argonlefou / DemulShooter

Enable dual lightgun play in arcade games and emulator
104 stars 14 forks source link

Permanent save for xinput #1 #2 #3 #4 possible? #220

Open Trihy opened 6 days ago

Trihy commented 6 days ago

I´d noticed when launching demulshooter gui, if a controller previously saved is turned off or if it changes Windows ID, it will be empty again on demulshoooter gui P1, P2, P3 or P4 config.

Can we have a way to set xinput as numbers? As many other emulators do. I mean set xinput0, xinput1, xinput2, xinput3, to P1, P2, P3 ,P4 no matter what kind of controller you connect, always will be number based as long as is reported as xinput # by the system.

Thanks

argonlefou commented 6 days ago

Xinput, as a protocol, has been removed from DemulShooter in 2020 to be replaced by a generic HID protocol that allows me to handle any kind of devices (touchscreen, analog guns, and also gamepads by extension)

There was also a lot of troubles for me with Xinput as the core of the program - made at the very start to handle lightguns - was not compatible with the way Xinput is working.

So now, there is unfortunately no link at all between a choosen device and if it is Xinput-related or not, so I can't permanently save a setting like Xinput ID because there's no way to address it in the current program

I'm not closing the ticket because it may be a valuable idea if I someday change again the very core of DemulShooter, but for now the device ID ( and what I can get from Windows with it) is still the key item to be able to get valuable data from most of the existing devices out there

Trihy commented 6 days ago

Thanks. I just noticed my devices (Touchmote xinput emulated devices) were always empty on demulshooter gui, so every time I use a game I need to re select them. It remembers some Mame behavior where starting with xinput controller off, will make the settings for the controller go away. It doesnt should be Id based, it should just always take the first xinput controller reported by the system as # 1

Thanks for such valuable information. Let´s see if some ideas surface in the future.