| 540 | } |
| 541 | |
| 542 | void GuiCanvas::setCursorPos(const Point2I &pt) |
| 543 | { |
| 544 | AssertISV(mPlatformWindow, "GuiCanvas::setCursorPos - no window present!"); |
| 545 | |
| 546 | if ( mPlatformWindow->isMouseLocked() ) |
| 547 | { |
| 548 | mCursorPt.x = F32( pt.x ); |
| 549 | mCursorPt.y = F32( pt.y ); |
| 550 | } |
| 551 | else |
| 552 | { |
| 553 | mPlatformWindow->setCursorPosition(pt.x, pt.y); |
| 554 | } |
| 555 | } |
| 556 | |
| 557 | void GuiCanvas::showCursor(bool state) |
| 558 | { |
no test coverage detected