Thanks for your work evilc, i have been tearing my hair out looking for a way to play Falcon 4 BMS with a joystick that does not have enough buttons. I have read your post on MWO online that "shift" button functionality is on your to do list.
This is exactly what I'm waiting for.
Just downloaded UJR but yet to try. I'd like to confirm if joystick hats are recognised? If so, are they detected as buttons? And would it be possible to set up multiple shift buttons in future updates?
No switch functionality as of yet.
I broke my arm recently so I added it in because I needed to use an xbox pad in one hand and the dpad is a hat switch - it was slow going coding with only one arm though, so dont expect any more updates for a while.
Only one hat is recognised, this is a limitation of AHK.
If you need a switch mode, do it in AHK code - AHK is able to remap the virtual joystick - so do code like:
2Joy1:
if(state == 1){
send a
} else {
send b
}
return
2Joy2:
if (state == 0){
state := 1
SetScrollLockState, On
} else {
state := 0
SetScrollLockState, Off
}
return
Just be sure you are remapping the virtual stick, not the real one!
To check, use "manual control" in ujr to press the virtual buttons.
Use this test script to find the virtual stick (Change the 1st number):
2Joy1::
soundplay, *16
return
You will hear a sound when button 1 is hit.
Good luck!