.Dt GLUTMOUSEFUNC 3 LOCAL
NAME glutMouseFunc —Sets the mouse-button callback for the current window.
LIBRARYOpenGLUT - input
SYNOPSIS #include <openglut.h>
void glutMouseFunc(void( *callback )( int button , int state , int x , int y ));
PARAMETERS. Bf
callback . Ef
Client hook for mouse-buttons.
DESCRIPTIONWhenever a mouse button is pressed or released in an OpenGLUT window, OpenGLUT checks if that window has a mouse-button (Mouse) callback registered. If so, OpenGLUT gives the event to the handler. . Bf
button . Ef
is the button number, starting from 0. . Bf
state . Ef
is . Bf
GLUT_UP . Ef
or . Bf
GLUT_DOWN . Efto indicate the button's new state. The other parameters are the mouse coordinates. Mouse wheel motion can be reported as buttons. If you do not request otherwise, a wheel spun forward will act like a button clicking down, immediately followed by clicking up. Spinning the same wheel backward will act like a different button clicking. Mouse wheel pseudo-buttons are added after all real buttons. While the button is held and the mouse is dragged, you receive mouse-motion events (glutMotionFunc()), even if the mouse is dragged out of the window. This callback is bound to the . Bf
current window . Ef
.
CAVEATSReporting the wheel as buttons is actually inherited from X. freeglut added code to support this on WIN32. OpenGLUT inherited that support from freeglut. Old GLUT defines the symbols . Bf
GLUT_LEFT_BUTTON, . Ef. Bf
GLUT_RIGHT_BUTTON, . Ef
and . Bf
GLUT_MIDDLE_BUTTON. . Ef
However, mice can have more than 3 buttons, so these symbols are deprecated. Windows created via glutCreateMenuWindow() always cascade keyboard and mouse events to their parent.
SEE ALSOglutMotionFunc(3) glutPassiveMotionFunc(3) glutMouseWheelFunc(3) fl.sp 3 0
Johanes Gumabo
Data Size : 6,160 byte
man-glutMouseFunc.3Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 2 / 202,498
Visitor ID : :
Visitor IP : 18.227.134.95 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.
ERROR : Need New Coding : (parse_manual_page_|249|glutMouseFunc.3|2|Dt|.Dt GLUTMOUSEFUNC 3 LOCAL
) (parse_manual_page_|249|glutMouseFunc.3|15|Bf|.Bf Em
) (parse_manual_page_|249|glutMouseFunc.3|17|Ef|.Ef
) (parse_manual_page_|249|glutMouseFunc.3|24|Bf|.Bf Sy
) (parse_manual_page_|249|glutMouseFunc.3|26|Ef|.Ef
) (parse_manual_page_|249|glutMouseFunc.3|29|Bf|.Bf Sy
) (parse_manual_page_|249|glutMouseFunc.3|31|Ef|.Ef
) (parse_manual_page_|249|glutMouseFunc.3|33|Bf|.Bf Sy
) (parse_manual_page_|249|glutMouseFunc.3|35|Ef|.Ef
) (parse_manual_page_|249|glutMouseFunc.3|37|Bf|.Bf Sy
) (parse_manual_page_|249|glutMouseFunc.3|39|Ef|.Ef
) (parse_manual_page_|249|glutMouseFunc.3|56|Bf|.Bf Li
) (parse_manual_page_|249|glutMouseFunc.3|58|Ef|.Ef
) (parse_manual_page_|249|glutMouseFunc.3|65|Bf|.Bf Sy
) (parse_manual_page_|249|glutMouseFunc.3|67|Ef|.Ef
) (parse_manual_page_|249|glutMouseFunc.3|69|Bf|.Bf Sy
) (parse_manual_page_|249|glutMouseFunc.3|71|Ef|.Ef
) (parse_manual_page_|249|glutMouseFunc.3|73|Bf|.Bf Sy
) (parse_manual_page_|249|glutMouseFunc.3|75|Ef|.Ef
)