Re: Analog stick inteferring with trackball/mouse

rindahl <[email protected]> Tue, 23 Feb 2010 10:43:40 -0800 (PST)
Newsgroups gmane.comp.games.mame.advancemame.user
Message-ID <[email protected]>
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.


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Unsubscribe at https://lists.sourceforge.net/lists/listinfo/advancemame-users