beardypig/guncon2

nice work - need some direction :)

Opened this issue · 8 comments

hi - I'm running groovyarcade through a New Astro City and recently added a Ps2 Guncon2 into the mix.

I installed your drivers - and I'm pretty sure that side of things is 100%. The gun fires and buttons work on it in game. However the mouse/crosshair is erratic all over the screen. I ran the calibration - however it didn't work, I don't see usb-0b9a_016a-event-joystick but I do see usb-0b9a_016a-event-mouse. Even with that change, still no change to the guns behaviour.

finally - I do not have the sync cable attached, I was unsure from the guide - is this required in this setup ? I'm running VGA > extron > RGB BNC > Dsub15 arcade monitor. So I would assume if required - I would put a T connection into the BNCs and join in from there.

You must connect the rca sync cable otherwise nothing will work.

perfect - just needed the confirmation

@rtomasa is, of course, correct :)

Back again - Just for clarity - I'm running GroovyArcade (arch linunx) latest version, which I suspect has guncon2 drivers already but I could be wrong. I am also unsure what to use for sync on the guncon2 - I've tried horizontal, vertical and green, but no difference in any of them. I installed the guncon2 drivers as per the instructions.

From within Mame - it sees Guncon2 as an input device. However it doesn't respond.

If I launch Time Crisis from within AttractMode - the guncon2 does nothing. If I exit attractmode and switch to the arch desktop, the mouse is taken over by the guncon2 - and basically scrolls really quickly, unless I unplug the sync. Buttons work also. However its impossible to use, and when I launch Mame from the desktop - its detected now and the buttons work, but same issue with it scrolling all over.

So - I ran "evdev-joystick --e /dev/input/by-id/usb-0b9a_016a-event-mouse -m 175 -M 720 -a 0"
"evdev-joystick --e /dev/input/by-id/usb-0b9a_016a-event-mouse -m 20 -M 240 -a 1"

Now I clearly there is a difference in my setup - where it is seen as event-mouse and not event-joystick. Also when I run evdev-joystick --l ; I'm only seeing my MadCatz x360 padhacks.

output showing the IDs
[arcade@GroovyArcade by-id]$ pwd
/dev/input/by-id
[arcade@GroovyArcade by-id]$ ls -al
total 0
drwxr-xr-x 2 root root 200 Feb 12 20:19 .
drwxr-xr-x 4 root root 500 Feb 12 20:19 ..
lrwxrwxrwx 1 root root 9 Feb 12 20:19 usb-0b9a_016a-event-mouse -> ../event5
lrwxrwxrwx 1 root root 6 Feb 12 20:19 usb-0b9a_016a-mouse -> ../js2
lrwxrwxrwx 1 root root 9 Feb 12 20:19 usb-Logitech_USB_Receiver-if02-event-mouse -> ../event8
lrwxrwxrwx 1 root root 9 Feb 12 20:19 usb-Logitech_USB_Receiver-if02-mouse -> ../mouse1
lrwxrwxrwx 1 root root 9 Feb 12 20:19 usb-Mad_Catz__Inc._Street_Fighter_IV_FightPad_0F26DC07-event-joystick -> ../event4
lrwxrwxrwx 1 root root 6 Feb 12 20:19 usb-Mad_Catz__Inc._Street_Fighter_IV_FightPad_0F26DC07-joystick -> ../js1
lrwxrwxrwx 1 root root 9 Feb 12 20:19 usb-Mad_Catz__Inc._Street_Fighter_IV_FightPad_0F28502C-event-joystick -> ../event3
lrwxrwxrwx 1 root root 6 Feb 12 20:19 usb-Mad_Catz__Inc._Street_Fighter_IV_FightPad_0F28502C-joystick -> ../js0

So my question is - what am I doing wrong and what do I have to do to fix ? also what should I use for sync.

thanks again

********** This is resolved now - by creating the pem key manually using google ! Install worked now without SSL error, however above issues of scrolling cursor continues on H-sync in desktop. and with v-sync curor moves frantic and always returns to top right.

additional info - I'm re-running the installer and noticed this

[arcade@GroovyArcade guncon2-master]$ make modules
make -C /lib/modules/6.6.8-arch1-1-15khz/build M=/home/arcade/guncon/guncon2-master modules
make[1]: Entering directory '/usr/lib/modules/6.6.8-arch1-1-15khz/build'
make[1]: Leaving directory '/usr/lib/modules/6.6.8-arch1-1-15khz/build'
[arcade@GroovyArcade guncon2-master]$ sudo make modules_install
make -C /lib/modules/6.6.8-arch1-1-15khz/build M=/home/arcade/guncon/guncon2-master modules_install
make[1]: Entering directory '/usr/lib/modules/6.6.8-arch1-1-15khz/build'
INSTALL /lib/modules/6.6.8-arch1-1-15khz/updates/guncon2.ko
SIGN /lib/modules/6.6.8-arch1-1-15khz/updates/guncon2.ko
At main.c:167:

  • SSL error:FFFFFFFF80000002:system library::No such file or directory: crypto/bio/bss_file.c:67
  • SSL error:10000080:BIO routines::no such file: crypto/bio/bss_file.c:75
    sign-file: ./certs/signing_key.pem
    ZSTD /lib/modules/6.6.8-arch1-1-15khz/updates/guncon2.ko.zst
    DEPMOD /lib/modules/6.6.8-arch1-1-15khz
    make[1]: Leaving directory '/usr/lib/modules/6.6.8-arch1-1-15khz/build'
    [arcade@GroovyArcade guncon2-master]$

Previously I ssh;d via my phone, so obviously missed the fine detail "ssl error"

I have no idea about other systems since I've only implemented the driver in RGB-Pi OS. The driver creates two devices for mouse and joystick that need to be carefully remapped from the emulator/frontend. You need to get the sync from a composite rca. We always use this kind of cheap adapter
image

ah ok - so I need composite sync - which would explain the pointer either scrolling only across, or up and down, when i use either H or V as sync. If my understanding is correct - composite is just H and V joined. I'll post on arcade controls and see has someone created an inline dongle, that would enable me to extract h&v into a single RCA for sync on the guncon2

got a bit further - https://forum.arcadecontrols.com/index.php/topic,168305.0.html

but no joy as of yet - can only kill 1 guy at the start - gun doesn't pan far enough to the right.