diff --git a/Source/OpenTK/Platform/Windows/API.cs b/Source/OpenTK/Platform/Windows/API.cs index 57a8f295..41248c3f 100644 --- a/Source/OpenTK/Platform/Windows/API.cs +++ b/Source/OpenTK/Platform/Windows/API.cs @@ -2758,7 +2758,23 @@ namespace OpenTK.Platform.Windows /// /// Raw input data as an array of bytes. /// - 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