emoose / Xb2XInput

XB2X: User-mode Windows driver for Xbox OG controllers, supporting both XInput and DirectInput.
116 stars 12 forks source link

not really an issue, more a question #28

Open medievil1 opened 3 years ago

medievil1 commented 3 years ago

does this support the analog face buttons the OG xbox has? many og xbox games used the analog face buttons and with xemu and cxbxr improving.. this is the ideal solution for controller support/

emoose commented 3 years ago

Sadly not, xinput doesn't have any support for analog buttons, so there's no way to translate it over :/ It can actually read the analog value, but doesn't copy it over or anything.

Maybe DirectInput controllers could work with analog buttons, haven't looked into that, but don't really think ViGEmBus can work with them at all :(

eVenent commented 2 years ago

Do we have any chances for DirectInput mode for Xb2XInput in the future? It would let to enable analog buttons on PC.

Currently we do not have proper driver which can be used for OG Xbox emulators (emulating analog buttons). Mayflash's is an mistake, which allows only 2 pressure sensitive buttons in one config (usually disabling analog triggers). XBCD apart of unsigned driver is giving 3 axis for 8 buttons, so even if we will assign two buttons to them (for normal and negative axis), two of buttons will stay digital. Such DirectInput driver can be used even for PS2 and PS3 emulators, where these pressure-sensitive face buttons are already supported. I saw that people are asking if it is possible to use Xbox OG controller with Playstation emulators. As long, as we do not have such driver, it is not possible.

Sadly, this unique feature (pressure sensitive buttons) can be forgotten if we will not receive any driver which will help to prevent it. I saw that reWASD software added pressure-sensitive support for Dualshock 3 where we can remap buttons and activate different actions depends on how hard we are pressing buttons. It would be nice to have such support for Xbox device too.

medievil1 commented 2 years ago

analog buttons are possible, using libusb it was recently added as standard on cxbxr... plug the og xbox controller in via usb and it will read it all analog buttons intact

eVenent commented 2 years ago

Great to know! At least one emulator supports OG controller properly. Now we need someone to create DirectInput driver based on this solution and controller will have perfect support on PC. We will be able to spread pressure sensitive support to PS2 and PS3 emulators too.