-
In attempting to get an application working with both an Xbox controller as well as a generic HID-compliant game controller (in this case a Great Planes R/C simulator), I noticed that the indexing of the non-Xbox controller is apparently shifted to index position 4. Would this be the correct Joystick ID ("4") to use for the older Joystick API functions, like joyGetPosEx()? Below is output from Xidi v4.1.1 with the R/C simulator and without an Xbox controller attached:
Thank you in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes, that's right. But you can actually control what Xidi does to some extent. If you open the start menu and search for "Set up USB game controllers" and then click "Advanced..." in the window that shows up you can pick a preferred device. Whatever you pick there will show up at index [0] when Xidi does its "Enumerating system WinMM devices" step. Basically, the intuition is Xidi tries to respect your preference. If you don't pick anything OR you pick a device that supports XInput, then when Xidi does its "Presenting the application with these WinMM devices" step you'll see the virtual controllers first followed by whatever else is attached to your system. I think this is how your system is currently configured, which is why your Great Planes R/C simulator shows up at index [4]. If, on the other hand, you pick a non-XInput device then it will come first when Xidi does its "Presenting the application with these WinMM devices" step. In your case you could pick your Great Planes R/C simulator as the preferred device, and then it should show up at index [0]. |
Beta Was this translation helpful? Give feedback.
Yes, that's right. But you can actually control what Xidi does to some extent.
If you open the start menu and search for "Set up USB game controllers" and then click "Advanced..." in the window that shows up you can pick a preferred device. Whatever you pick there will show up at index [0] when Xidi does its "Enumerating system WinMM devices" step. Basically, the intuition is Xidi tries to respect your preference.
If you don't pick anything OR you pick a device that supports XInput, then when Xidi does its "Presenting the application with these WinMM devices" step you'll see the virtual controllers first followed by whatever else is attached to your system. I think this is how your system…