Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Objective: Replace Xinput with SDL2
Reason: Since XtendedInput currently kills DirectInput, this allows it to be brought back in a way that doesn't affect the rest of functionality and keeps the core xinput functionality too as SDL2 already deals with that. It manages controllers in a standardized way so that A,B,X,Y buttons and such are handled the same for every controller regardless if it's xinput or not. Also no need to use external wrappers such as Xoutput or ds4windows, it works out of the box.
Tested with: DualSense controller in NFSU2
Platform: Windows 11
Notes:
Make sure to copy SDL2 32bit dll to the scripts folder in order for it to work
This can be extended further too, SDL2 supports adaptive triggers on the PS5 controller, LED Color lights for PS4/PS5 controllers and vibration for any controller
This method possibly works for NFS-XtendedInput