XInput support since 4.37.3
-
since 4.37.3 BMS supports hard coded XInput support.
set g_bUseXInput 1
to enable (enabled by default).
Following image describes command assign (for 4.37.4, 4.37.3 maybe a bit different) -
@chihirobelmo Tutorial on this would be highly appreciated
-
if you don’t want it but want to use joystick as DX device
set g_bUseXInput 0
atUser/Config/falcon bms.cfg
else it works by default, just plug xinput gamepad and try it… -
okay description detail from dev forum:
UPDATE 2023/6/4
1. Switch function changed: see RED font below.
2. Now for XInput device functions are hardcoded. Means you can Plug & Play BMS with XBOX Controllers. You can disable this by g_bUseXInput. Note that you should not bind any callbacks to the XInput Controllers as they will be recognized as a separate XInput + DirectInput devices.#######################################################################
I know it’s best to have a good HOTAS setup for BMS.
But I came up with an idea to make new callbacks that work differently with 2 modifier keys combinations.- SimAltHotasTMSShift
- SimAltHotasDMSShift
- SimAltHotasUp
- SimAltHotasDown
- SimAltHotasLeft
- SimAltHotasRight
- SimAltHotasAlpha
- SimAltHotasBravo
- SimAltHotasXray
- SimAltHotasYankey
I’ve found there are several guys love VR flight games like VTOL:VR or in VRChat not having HOTAS or only having HOTAS.X but interested in BMS.
This way some reasonable joystick user can help his HOTAS setup…or even XBOX controller users can try BMS…then consider upgrading HOTAS.| | (NO SHIFT) | SimAltHotasTMSShift(*1) | SimAltHotasDMSShift(*1) | (TMS+DMS) | | SimAltHotasUp | CURSOR UP | TMS UP | DMS UP | CMS UP | | SimAltHotasRight | CURSOR RIGHT | TMS RIGHT | DMS RIGHT | CMS RIGHT | | SimAltHotasDown | CURSOR DOWN | TMS DOWN | DMS DOWN | CMS DOWN | | SimAltHotasLeft | CURSOR LEFT | TMS LEFT | DMS LEFT | CMS LEFT | | SimAltHotasAlpha | SECOND TRIGGER | ANTENNA DOWN | COMM UHF | SPD BRK RETRACT | | SimAltHotasBravo | PICKLE | ANTENNA UP | COMM VHF | SPD BRK OPEN | | SimAltHotasXray | NWS | PINKY | COMM IFF OUT | WHEEL BRAKE | | SimAltHotasYankey | UNCAGE | NAV->DGFT->MRM->AG->NAV(*2) | COMM IFF IN | AP OVERRIDE |
*1: Thsee 2 callbacks makes 4 status with:
- Not holding either of them
- Only holding TMS Shift
- Only holding DMS Shift
- Holding both
and changes other SimAltHotas callback functions.
*2 This is a new callback to cycle MODEs.
UPDATE
I’ve committed a new feature:
Now BMS detects XInput while g_bUseXInput is enabled. (its enabled by default)Joysticks are DirectInput.
Gamepads are XInput.- Note that you are not binding any callback or axis to the gamepad if you’d like to try this feature as XInput also detected as DirectInput at the same time.
I made Gamepad(XInput) “Plug & Play” (means features are hard coded and no need to bind anything) and updated some axis handling more suitable for the gamepad.
- Left/Right trigger works as “throttle moving rate”, not absolute position.
- Throttle position stops at Buster if the trigger is held softly.
- Right thumb stick works as head tilt/pan
I might add more updates later,
future plans:- Shows TMS/DMS Shift helper while holding the buttons. which shows which XYAB buttons execute what callback. (PR made)
- Shows Throttle Position helper while moving throttle via XInput. which shows the current throttle position. (PR made)
- Left Stick works as a rudder while NWS is on.
-
I tried with Xbox controller and it works fine. Noticed a problem though, during ground mission using mavericks, the lock on tgp breaks, on using DMS down to make the weapons page SOI. Any help will be appreciated.
-
-
-
It would be awesome if the switch between the right joystick being ‘look around’ and also being ‘mouse cursor’ could be a toggle instead of having to keep the right joystick held down.
Maybe clicking in on the right joystick with the left bumper pulled could enable ‘mouse’ control?
Or something else…
Thoughts?