In my current configuration, I noticed that one game (Star Wars) uses a generic "JOY_XAXIS", where everything else uses numbered joysticks (e.g. JOY1_XAXIS). I use XInput by default (and no override for this game), so was surprised that it could work with other game controllers (e.g. DInput flight stick). The use of this notation sort of explains it, though not sure how non-XInput controllers are treated in XInput (well it seems).
Seems useful for racing games too, as the wheels use DInput, so the joystick number could be anything at any given time. Just wondered if this notation can be used with other games in DInput, as well as XInput mode. Very useful for games that can only have one player at a time, so they can use whatever controller they want to steer.
Of course, I'm assuming pedals can be done the same way. Otherwise, I was going to enumerate up to n of them (assuming there is not a limit on the number of mappings). For example, for a Logitech G92* wheel, which are definitely not XInput controllers (so assume would use DInput mode with this emulator), it seems like this would do the trick:
JOY_YAXIS_NEG
JOY_RZAXIS_NEG
Please advise. Thanks much!
JOY_XAXIS vs JOY1_XAXIS,JOY2_XAXIS,...
Forum rules
Keep it classy!
Keep it classy!
- No ROM requests or links.
- Do not ask to be a play tester.
- Do not ask about release dates.
- No drama!
Re: JOY_XAXIS vs JOY1_XAXIS,JOY2_XAXIS,...
I forget how this works but I assume it just takes the first one.
Re: JOY_XAXIS vs JOY1_XAXIS,JOY2_XAXIS,...
That's what MAME would do with mice anyway (when in multi-mouse mode). Will test and let you know, but it would be nice if it just did any of them, otherwise, is there a limit as to how many of these tokens I can string together with commas? I want to cover all bases with DInput devices.
Unlike XInput, which should always be 1-4, DInput devices can be virtually any number (am sure you're aware of all that, but noting for benefit of other readers). So when you say the first one, that would be player 1 in XInput mode and could be any game controller in DInput mode, as Windows orders them however it wants, right?
Will be testing this shortly and will post results.
Thanks again!