Is there any way that I can detect mouse click position by not using glutMouseFunc()?
All examples that I found online getting mouse click by using glutMouseFunc(). However, I don't want the detect mouse click function always active. I want to record the mouse click position only after user selects a certain option in the menu. To be exact, I want to record 4 mouse click positions, after user selects an option in the menu.