* cursor now moves with arrow keys again for OSX
* this apple method to do it generates unwanted events, so it could not be used for the menu mouse-move trick. this is #ifdeffed * we should re-evaluate if this mousemove should remain in blender... there are better ways (scrolling contents of pup) * plus: removed warnings from drawview.c
This commit is contained in:
@@ -465,10 +465,13 @@ GHOST_TSuccess GHOST_SystemCarbon::getCursorPosition(GHOST_TInt32& x, GHOST_TInt
|
||||
}
|
||||
|
||||
|
||||
GHOST_TSuccess GHOST_SystemCarbon::setCursorPosition(GHOST_TInt32 /*x*/, GHOST_TInt32 /*y*/) const
|
||||
GHOST_TSuccess GHOST_SystemCarbon::setCursorPosition(GHOST_TInt32 x, GHOST_TInt32 y) const
|
||||
{
|
||||
// Not supported in Carbon!
|
||||
return GHOST_kFailure;
|
||||
float xf=(float)x, yf=(float)y;
|
||||
|
||||
CGPostMouseEvent(CGPointMake(xf, yf), TRUE, 1, FALSE, 0);
|
||||
|
||||
return GHOST_kSuccess;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user