| 224 | } |
| 225 | |
| 226 | static void KeyEventProc(KEY_EVENT_RECORD ker) { |
| 227 | int key = MapNativeKey(ker.wVirtualKeyCode); |
| 228 | int uni = ker.uChar.UnicodeChar; |
| 229 | |
| 230 | if (ker.bKeyDown) { |
| 231 | Input_SetPressed(key); |
| 232 | if (uni) Event_RaiseInt(&InputEvents.Press, (cc_unichar)uni); |
| 233 | } else { |
| 234 | Input_SetReleased(key); |
| 235 | } |
| 236 | } |
| 237 | |
| 238 | static void MouseEventProc(MOUSE_EVENT_RECORD mer) { |
| 239 | switch (mer.dwEventFlags) |
no test coverage detected