Hi,
How to distinguish between multiple joysticks?
I'm using 2 (the same) joysticks in my software, but sometimes (after a computer restart) joystick API report the same joystick (on the same USB port) with different ID, e.g.:
- Left joystick has ID 0 and right joystick has ID 1. After 5 restarts left joystick has ID 1 and right joystick has ID 0.
I was trying to bind joystick to USB port (USB port list based on USBView sample), but joystick API doesn't give any information that can be "linked" with device information available on USB port.
I can set "Preferred device" in joy.cpl advanced settings, but don't know how to get information which joystick is preffered.
PS I'm using mingw x64 4.9.2 posix.