| 15 |
|
{ |
| 16 |
|
switch (msg) |
| 17 |
|
{ |
| 18 |
+ |
case WM_KEYDOWN: |
| 19 |
+ |
if (wParam == VK_F5) |
| 20 |
+ |
CHARTest(); |
| 21 |
|
case WM_ACTIVATE: |
| 22 |
|
case WM_CHAR: |
| 23 |
|
case WM_KEYUP: |
| 21 |
– |
case WM_KEYDOWN: |
| 24 |
|
ONrPlatform_WindowProc(onihwnd, msg, wParam, lParam); |
| 25 |
|
return DefWindowProc(hwnd, msg, wParam, lParam); |
| 26 |
|
case WM_SETCURSOR: |
| 131 |
|
lpPoint->x = gl->DisplayMode.Width / 2; |
| 132 |
|
lpPoint->y = gl->DisplayMode.Height / 2; |
| 133 |
|
} |
| 132 |
– |
if (GetAsyncKeyState(VK_F12)) |
| 133 |
– |
{ |
| 134 |
– |
CHARTest(); |
| 135 |
– |
} |
| 134 |
|
else |
| 135 |
|
{ |
| 136 |
|
if (!GetCursorPos(lpPoint)) |