Closed weezzah closed 1 year ago
You can also send in a string with the name instead of its index. Hope that helps
Worked like a charm, thank you!
diagnostics.watch(joystick["Logitech Dual Action"].x)
You can also do
diagnostics.watch(joystick["Controller (Wireless Gamepad F710)", 1].x)
If you want the second controller with a specific name. Hope it helps!
Excellent solution, safe to say this issue has been solved, thank you again!
If there is a solution to this, please let me know, but here goes:
This is more of a feature request, but it stems from an issue with how Windows handles game controllers, which gives me an issue in FreePIE. The game controllers list in Windows is often reordered if a device is connected or disconnected. On top of that, vJoy is also put into that list which adds to the shuffling. And other virtual devices do the same, like the 360 controller emulator. This has me writing scripts similar to this:
Whenever I change what is plugged into the pc, I have to go into game controllers and verify that my script indices are set to the correct game controllers. This could be solved by providing some way of identifying joysticks by name instead of with indices, or maybe do something like this:
Thoughts?
Edit: There's the possibility of having multiple controllers of same type which means names would be identical. There are unique id's for game controllers that could be used somehow too.