argonlefou / DemulShooter

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

Extra mouse buttons support #170

Open SeongGino opened 9 months ago

SeongGino commented 9 months ago

Noticed in #143 that OG has a page with an option to use a separate Action button, but it only seems to be able to be mapped to keyboard keys.

I do have some gun controllers that make use of the 4th and 5th mouse buttons (for a Guncon2's C button and a separate pedal input), and it'd be nice if DemulShooter could use those.

argonlefou commented 9 months ago

I'll check that if I can get hand on a device with 4/5 buttons.

I think it's possible from a code point of view, but this may results in a lot of work needed to handle the buttons press between keyboard/mouse in the GUI

For now, the simplest way is to map those extra mouse button to a keyboard key with AHK

SeongGino commented 8 months ago

Took me this long to reply, wow.

Still, thanks for looking into it! At the time I didn't really disclose what I was using since it was private then, but I made my own (fork of an existing) lightgun project which, among other things, change the emulated mouse from a three button to five button mouse (that was already done from the base I forked, I just added feedbacks and outputs support).

Granted, the system I have allows all the buttons to be configured so I could use the excess 4th/5th buttons as keyboard keys (and uh, I'm using Linux so AHK isn't really an option for me aha). But was just curious, since the DemulShooter GUI also seems to show 4th and 5th mouse buttons but will only actually read buttons 1-3.