0

I know that with GLUT, I can create a Pop-up Menu with glutCreateMenu, glutAddMenuEntry, glutAttachMenu. And there are three events can be used with glutAttachMenu -- "GLUT_RIGHT_BUTTON, GLUT_MIDDLE_BUTTON, GLUT_LEFT_BUTTON".

However, I want this Pop-up menu show when some other event happens, such as double-click (assuming that I have written a function DoubleClick() which will return true if there is a double-click).

How can I implement this?

genpfault
  • 51,148
  • 11
  • 85
  • 139

0 Answers0