JOY_XAXIS vs JOY1_XAXIS,JOY2_XAXIS,...
Posted: Sun Mar 30, 2025 8:55 am
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!
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!