punesemu / puNES

Qt-based Nintendo Entertaiment System emulator and NSF/NSF2/NSFe Music Player (Linux, FreeBSD, OpenBSD and Windows)
GNU General Public License v2.0
633 stars 42 forks source link

Set gamepad ID via command line #393

Open bmsuseluda opened 6 months ago

bmsuseluda commented 6 months ago

Hello Fabio,

sorry to bother you again with this topic.

I mapped the gamepad buttons successfully as you can see here: https://github.com/bmsuseluda/emuze/blob/feat/nextRelease0424/app/server/applicationsDB.server/applications/punes/index.ts

The one thing i could not get to work is to set the gamepad itself.

In the input.cfg file the gamepad id is set by puNES: P1J GUID={FE11FF9C-045E-0396-02E0-01B409030773}

So i tried --input.p1j.guid {FE11FF9C-045E-0396-02E0-01B409030773} and --input.p1j.guid FE11FF9C-045E-0396-02E0-01B409030773 but none of these work.

On top of this i found out that the GUID i get from SDL2 and the GUID from puNES are not the same. So i would like to ask what format puNES expects.

As always thank you for your work bmsuseluda

punesemu commented 6 months ago

Hi bmsuseluda, sorry for the delay but I have some problems and I don't have time to dedicate to the emulator. I'll take a look as soon as possible.

bmsuseluda commented 5 months ago

take your time. private live goes first.