My Findings:
ctrlr sequence is as follows
MOUSECODE_#_ANALOG_##
Where #= the mouse number and ## = the axis
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. :)
OSD input | Game Input | |
digital --> | digital | :) |
digital --> | Absolute Analog | simulated, core |
digital --> | Relative Analog | simulated, core |
Absolute Analog --> | digital | simulated (well in official mame), OS Dendent* |
Absolute Analog --> | Absolute Analog | :) |
Absolute Analog --> | Relative Analog | not directly supported** |
Relative Analog --> | digital | not directly supported*** |
Relative Analog --> | Absolute Analog | simulted well, core |
Relative Analog --> | Relative Analog | :) |
Is there a way to tell an actlabs gun from a regular mouse?
Inteesting.....
by chance you haven't played with the guncodes and newer analog joystick codes have you?
I'm sure they work, but I'm more interested in how they work. For example, there are now 3 pedal joycodes. Afaik directx doesn't label axis this way, or do they? I don't use a lot of crazy directx controllers so i'm just asking.
Also the guncodes, is there a way to tell an actlabs gun from a regular mouse? If not then wouldn't the guncodes also effect mouse mappings? (Of course only if the lightgun is turned on, so maybe I answered my own question).
What I was getting at is I'm almost positive that directx controllers don't use said labels. So then how is mame choosing which analog axis is a "pedal" these constants are listed in the source so either they are useless (which means somebody needs to comment them out) or they are magical in that I don't have aclue how they are working.
I am concluding basically what you are with the mouse vs lightgun inputs. My guess is analog Z and pedal 1 are one in the same, in which case we have some redundant constants which might be confusing in the future.