| Main > Main Forum |
| Official Mame and remapping Mice |
| (1/3) > >> |
| u_rebelscum:
Official Mame now can remap the mouse, just like the analog joystick. So you don't need Analog+ if all you want to to do is (for example) use Mouse X axis for player 1 and Mouse Y axis for player 2 anymore. It's best if you use 0.85u1 or later. You can tab into the input UI, select mame's analog axis you want controlled by the mouse axis, press enter, and move the mouse in that axis a fair amount. (It might take a couple times for mame to register the mouse movement, though; try moving it slower or farther.) Don't worry, I am still working on MameAnalog+! It will take a little while though, and I've seen a bunch of "you need Analog+ to remap mice" advice recently, which is not true anymore. I don't want to leave those people hanging when they didn't need wait. :) |
| Tiger-Heli:
Just the individual axes on one mouse, or can official MAME do multiple (mouse 2 controls player 2) mice as well? |
| u_rebelscum:
I've been testing this a little, and official Mame can do multiple USB in win98/ME, SORT OF. I was going to test it more before saying anything, but you asked for it. ;D Limits (well, those I ran into on my system, so far): 1) Win98 and WinME only! NOT in win2k. NOT in winXP. (sound familiar to some of you, huh? ;) ) 2) The UI detects the only the "system mouse" axes; i.e. the "all mice together, mouse pointer you see on the desktop" mouse. Official Mame calles this "Mouse 1". 3) If you want to use multiple mice (or make it so only one physical mouse inputs to a player), you need to hand edit the cfg/cfg file, or better the ctrlr file. 4) Mame's default is for the Mouse "1" (system mouse) to coutrol player 1, mouse "2" (first individual USB mouse) to control player 2, mouse "3" (second individual USB mouse) to control player 3, ect. So you need to remap [size=-2]cough..ctrlrfile..cough[/size], unless you don't mind playing players 2 & 3. 5) I can't get my "mouse 4" to work individually, but mame is finding "four" mice, and that mouse does effect the system mouse, and the buttons are "mouse 4" buttons. (This might be a driver or system issue on my end). This means, on my system with the mice I have tested, I can get only two mice at a time. I would try testing more mice than the three USB I have, but my trackball CPs are "in the shop" ATM. I suggest editting the ctrlr file, since mame will "correct" the cfg file if a mouse is not found (unplugged at mame start time). Remember, this is a winME/98 only feature because MS removed (or never added) the directX directInput access to individual mice from win2k/XP. |
| Howard_Casto:
hmm the question remains.... can you remap mice axis via ctrlr files now? if you can then this is great news I'll have some testing to do I see. ;) |
| Howard_Casto:
My Findings: ctrlr sequence is as follows MOUSECODE_#_ANALOG_## Where #= the mouse number and ## = the axis However, it appears that this syntax isn't completely compatable with all control types. It works great for analog axis as mame knows to split the axis into two seperate directions. On digital inputs, however it gets really confused and can't use them. I tried it on pacman just for fun. It appears that the codes crash the input macro as when i went into the input settings in mame p1_joystick_left was shown to be mapped to "mouse 1 X" but the other 3 directions came up as "NONE". I believe there must be similar codes to the old-school "P1_JOYCODE_1_UP" flags used in mame to split an axis into two directions, I just haven't found them yet. Rebel if you can help me figure out this mess it would be appreciated. This is useful info for the controls.dat project. :) |
| Navigation |
| Message Index |
| Next page |