Describe the bug
When the target sdk of the csproj of a project is set to net6.0, its controller detection will be inconsistent with net6.0-windows This caused a lot of trouble when porting an old project.
Basically, if a game is compiled with net6.0, it will detect some controllers (XInput controllers) as GameControllers instead of gamepads and as such, those won't be detected by gamepad functions and will not work with the virtual key binding API.
However if a game is compiled with net6.0-windows specifically, then the input system will behave as intended.
To Reproduce
Steps to reproduce the behavior:
Create a project with stride
Define the net version as "net6.0" for both the game library and game binary
Xbox One and Xbox Series X controllers are detected as GameController and will not work with the virtual input system
Expected behavior
net6.0 should behave the same as net6.0-windows or at least, an error should appear if net6.0-windows specifically is expected on windows for the engine to behave as intended
It would be great if GameController containing the word 'xbox' or 'gamepad' in its name were simply sent to the Input.GamePads list. That would immediately solve all the problems.
Release Type: Official release
Version: 4.1.0.1898
Platform(s): Windows 11
Describe the bug When the target sdk of the csproj of a project is set to net6.0, its controller detection will be inconsistent with net6.0-windows This caused a lot of trouble when porting an old project. Basically, if a game is compiled with net6.0, it will detect some controllers (XInput controllers) as GameControllers instead of gamepads and as such, those won't be detected by gamepad functions and will not work with the virtual key binding API. However if a game is compiled with net6.0-windows specifically, then the input system will behave as intended.
To Reproduce Steps to reproduce the behavior:
Expected behavior net6.0 should behave the same as net6.0-windows or at least, an error should appear if net6.0-windows specifically is expected on windows for the engine to behave as intended