1
0
Fork 0

Fixed bug reported by Norman Vine:

Mouse was not working properly with PUI dialogs that use sliders.  It
turned out that the up/down sense was reversed.
This commit is contained in:
david 2002-03-27 22:34:43 +00:00
parent 36e012c400
commit 2129aba650

View file

@ -1011,14 +1011,12 @@ GLUTspecialkeyup(int k, int x, int y)
void void
GLUTmouse (int button, int updown, int x, int y) 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 void
GLUTmotion (int x, int y) GLUTmotion (int x, int y)
{ {
// puMouse(x, y);
// glutPostRedisplay();
current_input.doMouseMotion(x, y); current_input.doMouseMotion(x, y);
} }