diff options
author | Ton Roosendaal <ton@blender.org> | 2003-07-11 00:34:41 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2003-07-11 00:34:41 +0400 |
commit | ad6ddb4689cd9463c37a600c5af85b6799ec054c (patch) | |
tree | 719049639afdb485ffc4047f24386c526fa3ea01 /intern | |
parent | f999426daaf98c3abdb65ae6b78a9463ebcad0dd (diff) |
* 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
Diffstat (limited to 'intern')
-rw-r--r-- | intern/ghost/intern/GHOST_SystemCarbon.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/intern/ghost/intern/GHOST_SystemCarbon.cpp b/intern/ghost/intern/GHOST_SystemCarbon.cpp index 2f89818ac99..0dd65f4e76f 100644 --- a/intern/ghost/intern/GHOST_SystemCarbon.cpp +++ b/intern/ghost/intern/GHOST_SystemCarbon.cpp @@ -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; } |