mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 19:45:29 +00:00
[Win] Fixed RawHID struct definition
This commit is contained in:
parent
94476b930e
commit
956691de31
|
@ -2758,7 +2758,23 @@ namespace OpenTK.Platform.Windows
|
|||
/// <summary>
|
||||
/// Raw input data as an array of bytes.
|
||||
/// </summary>
|
||||
internal IntPtr RawData;
|
||||
internal byte RawData;
|
||||
|
||||
internal byte this[int index]
|
||||
{
|
||||
get
|
||||
{
|
||||
if (index < 0 || index > Size * Count)
|
||||
throw new ArgumentOutOfRangeException("index");
|
||||
unsafe
|
||||
{
|
||||
fixed (byte* data = &RawData)
|
||||
{
|
||||
return *(data + index);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
Loading…
Reference in a new issue