Skip to content
Snippets Groups Projects
Commit 81bcefb6 authored by tobias's avatar tobias
Browse files

more mouse input fixes

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@1825 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent 8d7a8f5d
No related branches found
No related tags found
No related merge requests found
...@@ -60,7 +60,7 @@ class DokkGLCanvas(QGLWidget): ...@@ -60,7 +60,7 @@ class DokkGLCanvas(QGLWidget):
self.level_.RotateAxis(tf.GetRot().GetRow(1), delta.x()*0.005) self.level_.RotateAxis(tf.GetRot().GetRow(1), delta.x()*0.005)
self.level_.UpdateScores() self.level_.UpdateScores()
self.update() self.update()
elif event.button() & Qt.RightButton: elif event.buttons() & Qt.RightButton:
if delta.y()!=0: if delta.y()!=0:
gfx.Scene().Apply(gfx.InputEvent(gfx.INPUT_DEVICE_MOUSE, gfx.Scene().Apply(gfx.InputEvent(gfx.INPUT_DEVICE_MOUSE,
gfx.INPUT_COMMAND_ROTX, delta.y()*0.5), gfx.INPUT_COMMAND_ROTX, delta.y()*0.5),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment