mirror of
https://github.com/libretro/ppsspp.git
synced 2025-01-23 09:34:55 +00:00
Experiment (#9647): Wipe RawInput buffers
This commit is contained in:
parent
41136d5b96
commit
6aca39722f
@ -270,10 +270,12 @@ namespace WindowsRawInput {
|
||||
GetRawInputData((HRAWINPUT)lParam, RID_INPUT, NULL, &dwSize, sizeof(RAWINPUTHEADER));
|
||||
if (!rawInputBuffer) {
|
||||
rawInputBuffer = malloc(dwSize);
|
||||
memset(rawInputBuffer, 0, dwSize);
|
||||
rawInputBufferSize = dwSize;
|
||||
}
|
||||
if (dwSize > rawInputBufferSize) {
|
||||
rawInputBuffer = realloc(rawInputBuffer, dwSize);
|
||||
memset(rawInputBuffer, 0, dwSize);
|
||||
}
|
||||
GetRawInputData((HRAWINPUT)lParam, RID_INPUT, rawInputBuffer, &dwSize, sizeof(RAWINPUTHEADER));
|
||||
RAWINPUT *raw = (RAWINPUT *)rawInputBuffer;
|
||||
|
Loading…
x
Reference in New Issue
Block a user