Code: Select all
static LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
switch (msg) {
// ...
case WM_INPUT:
switch (GET_RAWINPUT_CODE_WPARAM(wParam)) {
case RIM_INPUT: /* do stuff */ break; // according to docs
case RIM_INPUTSINK: /* do stuff */ WHAT_TO_DO
}
break;
// ...
}
return DefWindowProcW(hwnd, msg, wParam, lParam);
}
[*]
Code: Select all
break;return 0;Du>
Mobile version