| 72 | } |
| 73 | |
| 74 | void MouseState::SetCursorPos(int x, int y, HWND hwnd) |
| 75 | { |
| 76 | POINT pos; |
| 77 | pos.x = x; |
| 78 | pos.y = y; |
| 79 | |
| 80 | if(hwnd != NULL) |
| 81 | if(!ClientToScreen(hwnd, &pos)) |
| 82 | throw Win32Exception(GetLastError()); |
| 83 | |
| 84 | if(!::SetCursorPos(pos.x, pos.y)) |
| 85 | throw Win32Exception(GetLastError()); |
| 86 | } |
| 87 | |
| 88 | KeyState KeyboardState::GetKeyState(Keys key) const |
| 89 | { |
nothing calls this directly
no test coverage detected