aerys / minko

3D framework for web, desktop and mobile devices.
http://minko.io
Other
906 stars 210 forks source link

minko master html5: issue with mouse movement #200

Closed fjallraven closed 9 years ago

fjallraven commented 9 years ago

Having issues getting mouse dx/dy movement This can be seen in the "light" example - built as html5

It does no longer work to rotate the camera around

Thank you

Noxalus commented 9 years ago

Hello fjallraven, I had the same issue 2 weeks ago. You can fix it replacing the line 498 of Canvas.cpp (from SDL plugin):

_mouse->move()->execute(_mouse, x - oldX, y - oldY);

by this.

_mouse->move()->execute(_mouse, event.motion.xrel, event.motion.yrel);

(You can also remove oldX and oldY variables, they are not needed anymore).

This should be enough to resolve your problem. ;)

fjallraven commented 9 years ago

Many thanks! That did the trick

warrenseine commented 9 years ago

Fixed on master (1f47af99af8a29bc67364566ce8ac4cb79743ea2).