Discussion:
[advancemame-users] Analog stick inteferring with trackball/mouse
rindahl
2008-11-21 07:20:29 UTC
Permalink
I have an analog stick connected. It interferes with being able to use the
spinner and trackball in those games. If I put in the following entry for,
say, Tempest - tempest/device_joystick none - it relinquishes the block and
I can use the spinner. However, if do the same for Centipede, it deactivates
both the stick and trackball. Apparently, seemingly according to the docs,
they share the same driver or something. I expect there's SOME way to
differentiate the two but after pouring over the docs a spell, I can't see
how. Trying various manner of things hasn't enabled it. Surely someone's
encountered this issue?

Or maybe not, as for some reason I get no trackball input with the stock
values. I had to enter the following for p1 trackball:

input_map[p1_trackballx] mouse[1,x] -mouse[0,x]
input_map[p1_trackbally] mouse[1,y] -mouse[0,y]

...the axes of which, incidentally, are the opposite of the mouse (and of
course affect the mouse input if using one in trackball games).
--
View this message in context: http://www.nabble.com/Analog-stick-inteferring-with-trackball-mouse-tp20616297p20616297.html
Sent from the AdvanceMame - User mailing list archive at Nabble.com.
rindahl
2010-02-23 18:43:40 UTC
Permalink
Okay, I figured the trackball part out. I was originally thinking of trying
to get the stick and trackball axes to overlap....but that didn't seem
possible. But then I remembered that my mouse number is different. As I have
a wireless keyboard/mouse deal, and to consolidate controls connections, I
have my trackball hooked into the mouse port. Instead of this

input_map[p1_trackballx] mouse[1,x] -mouse[0,x]
input_map[p1_trackbally] mouse[1,y] -mouse[0,y]

it is

input_map[p1_trackballx] mouse[2,x] -mouse[0,x]
input_map[p1_trackbally] mouse[2,y] -mouse[0,y]

(I know, the axes are reversed. For some reason, that equals correct
cardinal directions on my system. Always has, despite OS re-install, so it
must be the wiring in my control panel.)

Then I thought, what would '3' do?

input_map[p1_trackballx] mouse[3,x] -mouse[0,x]
input_map[p1_trackbally] mouse[3,y] -mouse[0,y]

And this allows the trackball to work simultaneously with the analog stick.
Jesus. Simple, but jesus. Note that a game-specific setting was not
necessary, but is viable if needed. However, I haven't figured out a fix for
the spinner here, so I'm keeping the workaround:

[gamename]/device_joystick none
--
View this message in context: http://old.nabble.com/Analog-stick-inteferring-with-trackball-mouse-tp20616297p27708211.html
Sent from the AdvanceMame - User mailing list archive at Nabble.com.
Loading...