Build Your Own Arcade Controls Forum

Main => Software Forum => Linux => Topic started by: Pitou on August 06, 2014, 09:47:16 pm

Title: Archlinux sdlmame multipointer issue
Post by: Pitou on August 06, 2014, 09:47:16 pm
Hello,

I'm using sdlmame under archlinux along with the minipac and the u-track trackball.

When hitting tab in mame, I go to Player 1 controls and try to map the track X axis and when moving the ball, nothing is detected.
What's strange is that in missile command for example the trackball works fine as it seems to be mouse 1, but cannot make Mame detects it. The issue is that I also have a hacked PS2 mouse connected (to accomodate 2 spinners) which is also mouse 1. I have enabled multimouse in mame.ini

The trackball and spinners works fine in Linux.

Any idea?

Thank you.

Pitou!
Title: Re: Archlinux sdlmame multipointer issue
Post by: Pitou on August 06, 2014, 10:53:25 pm
I just found out something about Xorg and xinput.

Here is the output of xinput list command: (Note that I have connected some more mice)

[manager@Arcade ~]$ xinput list
⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Ultimarc MINI-PAC Ultimarc MINI-PAC       id=11   [slave  pointer  (2)]
⎜   ↳ PS/2 Generic Mouse                        id=13   [slave  pointer  (2)]
⎜   ↳ Logitech USB-PS/2 Optical Mouse           id=14   [slave  pointer  (2)]
⎜   ↳ HID Keyboard Device                       id=9    [slave  pointer  (2)]
⎣ Virtual core keyboard                         id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Power Button                              id=7    [slave  keyboard (3)]
    ↳ Ultimarc MINI-PAC Ultimarc MINI-PAC       id=10   [slave  keyboard (3)]
    ↳ Ultimarc MINI-PAC Ultimarc MINI-PAC       id=12   [slave  keyboard (3)]
    ↳ HID Keyboard Device                       id=8    [slave  keyboard (3)]
[manager@Arcade ~]$


Anybody have an idea of what I should do to have separate pointers? (xorg.conf config perhaps?)

Thanks.

Pitou!
Title: Re: Archlinux sdlmame multipointer issue
Post by: Pitou on August 07, 2014, 08:53:53 am
Found something about multi-pointer X (MPX) in Linux/Xorg

https://wiki.archlinux.org/index.php/Multi-pointer_X (https://wiki.archlinux.org/index.php/Multi-pointer_X)
http://ao2.it/en/blog/2010/01/19/poor-mans-multi-touch-using-multiple-mice-xorg (http://ao2.it/en/blog/2010/01/19/poor-mans-multi-touch-using-multiple-mice-xorg)
http://forum.arcadecontrols.com/index.php?topic=98815.0 (http://forum.arcadecontrols.com/index.php?topic=98815.0)

Does anybody had success with this?

Do you know if sdlmame in Linux supports MPX?

Pitou!