Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2003-07-11 00:34:41 +0400
committerTon Roosendaal <ton@blender.org>2003-07-11 00:34:41 +0400
commitad6ddb4689cd9463c37a600c5af85b6799ec054c (patch)
tree719049639afdb485ffc4047f24386c526fa3ea01 /intern
parentf999426daaf98c3abdb65ae6b78a9463ebcad0dd (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.cpp9
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;
}