![]() All XInput devices will show up as both XInput and DirectInput devices, but they should not be handled through DirectInput. When enumerating your DirectInput devices, all DirectInput devices will enumerate correctly. If you want your game to support legacy DirectInput devices, you may use DirectInput and XInput side by side. XInput and DirectInput Side by Sideīy supporting XInput only, your game will not work with legacy DirectInput devices. In order to test the trigger values separately, you must use XInput. The solution was to combine the triggers, setting one trigger to a positive direction and the other to a negative direction, so no user interaction is indicative to DirectInput of the "control" being at center. Older games would therefore assume user interaction. However, the newer controllers were designed to register minimum value, not center, when the triggers are not being held. Games have always assumed that DirectInput device axes are centered when there is no user interaction with the device. The combination of the left and right triggers in DirectInput is by design.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |