]> git.mxchange.org Git - flightgear.git/commitdiff
Fixed bug reported by Norman Vine:
authordavid <david>
Wed, 27 Mar 2002 22:34:43 +0000 (22:34 +0000)
committerdavid <david>
Wed, 27 Mar 2002 22:34:43 +0000 (22:34 +0000)
Mouse was not working properly with PUI dialogs that use sliders.  It
turned out that the up/down sense was reversed.

src/Input/input.cxx

index 6791b7459826c88fb97df823e3b9f97a6adbd64c..59afa540c653ff7e04c6460df839e06c2cd3cbf6 100644 (file)
@@ -1011,14 +1011,12 @@ GLUTspecialkeyup(int k, int x, int y)
 void
 GLUTmouse (int button, int updown, int x, int y)
 {
-  current_input.doMouseClick(button, updown == GLUT_DOWN, x, y);
+  current_input.doMouseClick(button, updown, x, y);
 }
 
 void
 GLUTmotion (int x, int y)
 {
-//   puMouse(x, y);
-//   glutPostRedisplay();
   current_input.doMouseMotion(x, y);
 }