Lines Matching defs:button
58 int button = -1;
326 button = GLUT_LEFT_BUTTON;
328 if (button < 0)
329 button = GLUT_MIDDLE_BUTTON;
331 if (button < 0)
332 button = GLUT_RIGHT_BUTTON;
334 /* finish the menu if we get a button down message (user must have
339 if (button == GLUT_MIDDLE_BUTTON)
361 menu = __glutGetMenuByNum(window->menu[button]);
365 __glutMenuButton = button == GLUT_RIGHT_BUTTON ? TPM_RIGHTBUTTON :
366 button == GLUT_LEFT_BUTTON ? TPM_LEFTBUTTON :
379 window->mouse(button, GLUT_DOWN, x, y);
388 button = GLUT_LEFT_BUTTON;
390 if (button < 0)
391 button = GLUT_MIDDLE_BUTTON;
393 if (button < 0)
394 button = GLUT_RIGHT_BUTTON;
400 /* if we're getting the middle button up signal, then something
402 if (button == GLUT_MIDDLE_BUTTON) {
407 left mouse button. Stupid Win32. */
444 window->mouse(button, GLUT_UP, x, y);