Improve mouse-warping with GraphicsWindowQt5
This commit is contained in:
parent
0331180e4f
commit
343fce4470
1 changed files with 2 additions and 0 deletions
|
@ -726,6 +726,8 @@ void GraphicsWindowQt5::requestWarpPointer( float x, float y )
|
|||
{
|
||||
if ( _window )
|
||||
QCursor::setPos( _window->mapToGlobal(QPoint((int)x,(int)y)) );
|
||||
|
||||
getEventQueue()->mouseWarped(x,y);
|
||||
}
|
||||
|
||||
bool GraphicsWindowQt5::checkEvents()
|
||||
|
|
Loading…
Reference in a new issue