mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-09 22:17:23 +00:00
[Win] Corrected GetRawInputData invocation
This commit is contained in:
parent
97b0275aa4
commit
9a25ddc14d
|
@ -94,17 +94,10 @@ namespace OpenTK.Platform.Windows
|
||||||
switch (message)
|
switch (message)
|
||||||
{
|
{
|
||||||
case WindowMessage.INPUT:
|
case WindowMessage.INPUT:
|
||||||
int size = 0;
|
int size = BlittableValueType<RawInput>.Stride;
|
||||||
|
|
||||||
#if false
|
|
||||||
// Get the size of the input buffer
|
|
||||||
Functions.GetRawInputData(lParam, GetRawInputDataEnum.INPUT,
|
|
||||||
IntPtr.Zero, ref size, API.RawInputHeaderSize);
|
|
||||||
|
|
||||||
void* data_ptr = stackalloc byte[size];
|
|
||||||
RawInput* data = (RawInput*)data_ptr;
|
|
||||||
#endif
|
|
||||||
RawInput data;
|
RawInput data;
|
||||||
|
|
||||||
|
//RawInput data;
|
||||||
// Read the actual raw input structure
|
// Read the actual raw input structure
|
||||||
if (size == Functions.GetRawInputData(lParam, GetRawInputDataEnum.INPUT,
|
if (size == Functions.GetRawInputData(lParam, GetRawInputDataEnum.INPUT,
|
||||||
out data, ref size, API.RawInputHeaderSize))
|
out data, ref size, API.RawInputHeaderSize))
|
||||||
|
|
Loading…
Reference in a new issue