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);
}
- , also DefWindowProcW() aufrufen, oder
Code: Select all
break; - ?
Code: Select all
return 0;
Mobile version