New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mac OSX: Dragging object in Unity 3D does not work due to lack of mouse deltas #3992
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. |
|
OSXScreen was not adding mouse movement deltas to mouse events while dragging. Some 3D applications rely on these deltas to implement dragging. Adding the mouse deltas to the mouse event fixes dragging in these applications. Ex: Unity3d
OSXScreen was not adding mouse movement deltas to mouse events while dragging. Some 3D applications rely on these deltas to implement dragging. Adding the mouse deltas to the mouse event fixes dragging in these applications. Ex: Unity3d
OSXScreen was not adding mouse movement deltas to mouse events while dragging. Some 3D applications rely on these deltas to implement dragging. Adding the mouse deltas to the mouse event fixes dragging in these applications. Ex: Unity3d
OSXScreen was not adding mouse movement deltas to mouse events while dragging. Some 3D applications rely on these deltas to implement dragging. Adding the mouse deltas to the mouse event fixes dragging in these applications. Ex: Unity3d
OSXScreen was not adding mouse movement deltas to mouse events while dragging. Some 3D applications rely on these deltas to implement dragging. Adding the mouse deltas to the mouse event fixes dragging in these applications. Ex: Unity3d
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:
Temporary workarounds:
No work around
Similar bugs:
Additional comments:
The text was updated successfully, but these errors were encountered: