Page 74 OpenGL Super Bible! auxMouseFunc Purpose Associates callback functions with mouse button activity. Include File Syntax void auxMouseFunc(int button, int mode, AUXMOUSEPROC func); Description Sets the function func to be called when a mouse button is pressed or released. The specified mouse button is set to one of the values listed below. The button action can denote whether the button is pressed or released. Parameters button int: The button with which to associate the callback function; may be one of the following values: AUX_LEFTBUTTON, AUX_MIDDLEBUTTON, or AUX_RIGHTBUTTON. mode int: The action of the button specified above to associate with the callback function. May be either AUX_MOUSEDOWN or AUX_MOUSEUP. func The callback function is prototyped as void CALLBACK MouseFunc(AUX_EVENTREC *event); The event structure contains the mouse position at the time of the event. typedef struct _AUX_EVENTREC { GLint event; GLint data[4]; } AUX_EVENTREC; event GLint: Specifies the event that took place (AUX_MOUSEUP, or AUX_MOUSEDOWN) data[4] GLint: contains specific data about this event. data[AUX_MOUSEX] = mouse position in x direction. data[AUX_MOUSEY] = mouse position in y direction. data[MOUSE_STATUS] = mouse button (from button). Returns None. Example See the MBOUNCE supplementary example on the CD subdirectory for this chapter. See Also auxKeyFunc
Note: If you are looking for high quality webhost to host and run your jsp application check Vision jsp web hosting services
This entry was posted
on Monday, May 7th, 2007 at 12:00 pm and is filed under Coldfusion.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.