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>2004-11-06 17:52:25 +0300
committerTon Roosendaal <ton@blender.org>2004-11-06 17:52:25 +0300
commit6ef4d3aec550aaed724a2b2b91d6822853a41323 (patch)
tree67503a60f2f137efecf314584c749968c0f329fb /intern
parentcf407da71903b513ba5a9ea85fdb2a6037dc2c3c (diff)
Solved annoyance in OSX warp cursor. The former used CGPostMouseEvent call
behaves very unpredictable (ask google) and seems to clear pending events as well (fly mode, shift event dissappears). The now used call, CGWarpMouseCursorPosition, creates no event so it has to be combined with updating mouse cursor location in ghostwinlay.c
Diffstat (limited to 'intern')
-rw-r--r--intern/ghost/intern/GHOST_SystemCarbon.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/intern/ghost/intern/GHOST_SystemCarbon.cpp b/intern/ghost/intern/GHOST_SystemCarbon.cpp
index e7f087a86bc..83ba2fdf764 100644
--- a/intern/ghost/intern/GHOST_SystemCarbon.cpp
+++ b/intern/ghost/intern/GHOST_SystemCarbon.cpp
@@ -493,7 +493,9 @@ GHOST_TSuccess GHOST_SystemCarbon::setCursorPosition(GHOST_TInt32 x, GHOST_TInt3
{
float xf=(float)x, yf=(float)y;
- CGPostMouseEvent(CGPointMake(xf, yf), TRUE, 1, FALSE, 0);
+ CGWarpMouseCursorPosition(CGPointMake(xf, yf));
+ // this call below sends event, but empties other events (like shift)
+ // CGPostMouseEvent(CGPointMake(xf, yf), TRUE, 1, FALSE, 0);
return GHOST_kSuccess;
}