dirkwhoffmann / vAmiga

vAmiga is a user-friendly Amiga 500, 1000, 2000 emulator for macOS
https://dirkwhoffmann.github.io/vAmiga
Other
299 stars 25 forks source link

third game controller button / middle mouse button... #747

Closed mithrendal closed 1 year ago

mithrendal commented 1 year ago

image

( screenshot AmigaTestKit-1.20/AmigaTestKit.adf )

until now we only got two buttons on a game port ...

      vamiga->controlPort1.mouse.setLeftButton(pressed==1);
      vamiga->controlPort1.mouse.setRightButton(pressed==1);

we need one more ... to be able to press the 3rd (CD32) gamepad button or mouse middle button...

this is a requested feature of eab member @aZtOcKdOg for reference https://eab.abime.net/showthread.php?p=1571921#post1571921

mithrendal commented 1 year ago

found a list of games supporting 2nd button http://eab.abime.net/showthread.php?t=57540

@aZtOcKdOg do you maybe know where the middle mouse button is used ... or if it is used at all on an Amiga ?

idrougge commented 1 year ago

The middle button is used to show the volumes list in ASL requesters. It can also be bound using FKey.

aZtOcKdOg commented 1 year ago

I will do a few tests today and report back. A few productivity apps can use middle mouse button but I will test if it correlates to the 'third' gamepad btn!

mithrendal commented 1 year ago

merged the vAmiga dev branch into vAmigaWeb dev and published to vAmigaWeb UAT (User Acceptance Test) Version at https://vamigaweb.github.io/uat/

image

attached the 3 buttons today only to the physical mouse and physical game controller

game controller buttons are auto mapped by id mod 3, e.g. btn1->amiga1, btn2->amiga2, btn3 ->amiga3, btn4->amiga1,...

TODO: +button2,3 with keyboard joystick emulation +button2,3 with virtual touch joystick +type of game controller setting to reduce the supported number of buttons for touch joystick

mithrendal commented 1 year ago

DA05C6ED-CA42-45A8-A5B3-B1CEB650B060

uat test version of vAmigaWeb now supports up to three fire buttons on the virtual touch joystick. 😎

last todo for tomorrow: keyboard joystick emulation support for more fire button 2 and 3 ...

mithrendal commented 1 year ago

last todo finished ... keyboard joystick emulation in uat test version of vAmigaWeb now supports fire button 2 and 3 ...

258153F6-A659-4CBC-8441-43B8994CB77A

dirkwhoffmann commented 1 year ago

Fixed in v2.2b1