openvr icon indicating copy to clipboard operation
openvr copied to clipboard

Issue #638: Fixed C# TextureMap field types

Open SpyderTL opened this issue 7 years ago • 2 comments

By default, Marshall.PtrToStructure converts char fields to 1 byte characters. Ushort fields are properly converted to 2 byte values.

This should fix Issue #638.

SpyderTL avatar Jan 07 '18 09:01 SpyderTL

Why hasn't this been merged already?

deranen avatar Oct 02 '18 13:10 deranen

@deranen probably because the file is automatically generated so any changes to it would have to be done somewhere else, not in the actual file.

I bump into parameters and properties being wrong, floats that are doubles, ints that are chars etc. Feels like we could have a separate place just to report things in the C# header 😅

BOLL7708 avatar Oct 02 '18 13:10 BOLL7708