Imported issue:
Steps to reproduce:
Expected: Dragging an object in Unity 3D should move the object.
Actual: Dragging an object does nothing/
Versions and operating systems:
Any version of Synergy running on any version of Mac OSX
Solution
The issue is caused because the CPlatformSceen implementation on Mac OSX does not correctly emulate mouse dragging events. Mouse dragging events on Mac OSX require not only the new position to be set in the event but also the mouse movement delta. Adding the following code to the postMouseEvent function in COSXScreen fixes the issue:
SInt64 deltaX = pos.x;
deltaX -= m_xCursor;
SInt64 deltaY = pos.y;
deltaY -= m_yCursor;
CGEventSetIntegerValueField(event, kCGMouseEventDeltaX, deltaX);
CGEventSetIntegerValueField(event, kCGMouseEventDeltaY, deltaY);
double deltaFX = deltaX;
double deltaFY = deltaY;
CGEventSetDoubleValueField(event, kCGMouseEventDeltaX, deltaFX);
CGEventSetDoubleValueField(event, kCGMouseEventDeltaY, deltaFY);
Temporary workarounds:
No work around
Similar bugs:
Additional comments:
This affects me too. Kubuntu 14.04 server OS X 10.9 client. Unity 3D and most other 3D apps cannot navigate by holding modifier key and using mouse.
Reverted
Hmm... Is the fix going to land to the mainstream? Because I see it has been reverted. I just added the lines from the solution to the source code, compiled for El capitan and now unity works just fine without any downsides I could think of.
I would really love this to be fixed. Having a second mouse just for Unity development is annoying.
Maybe problem is in capture mouse/keyboard hold button states.
I have this issue in Unity, UnrealEngine, Blender.
I can grab short video on both machines with full description for more explanation of that problem, if you want.
Most helpful comment
I would really love this to be fixed. Having a second mouse just for Unity development is annoying.