You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug: Exception when calling Windows.Gaming.Input.RawGameController.GetCurrentReading -> Cannot handle array marshalling for non-blittable type 'System.Boolean'
#1928
Open
mikrause79 opened this issue
Feb 19, 2025
· 1 comment
This works for non-AoT. In AoT projects, calling Windows.Gaming.Input.RawGameController.GetCurrentReading is throwing an exception, Cannot handle array marshalling for non-blittable type: 'System.Boolean'.
Description
This works for non-AoT. In AoT projects, calling Windows.Gaming.Input.RawGameController.GetCurrentReading is throwing an exception, Cannot handle array marshalling for non-blittable type: 'System.Boolean'.
The generated code appears to be:
The definition of GetCurrentReading in the IDL for the COM interface appears to be:
Steps To Reproduce
Expected Behavior
RawGameController.GetCurrentReading Should fill the array with button state.
Instead, it throws the following exception in WinRT.Runtime.dll:
Cannot handle array marshalling for non blittable type 'System.Boolean'.
Version Info
cswinrt 2.2.0.0
Microsoft.WindowsAppSDK 1.6.250205002
Microsoft.Windows.SDK.Net.Ref.Windows 10.0.19041.57
Additional Context
No response
The text was updated successfully, but these errors were encountered: