|
|
|
|
GM_setMouseDownFunc
Sets the mouse down callback function
Declaration
void MGLAPI GM_setMouseDownFunc(
GM_mouseDownFunc func)
typedef void (*GM_mouseDownFunc)(
event_t *evt)
Prototype In
gm/gm.h
Parameters
func |
Mouse down callback function to register |
Description
This function sets the mouse down callback function for your Game Framework game and is called by the Game Framework main loop (GM_mainLoop) multiple times per frame to process all mouse down events in the order that they are entered by the user. Note that your callback is passed a copy of the event that needs to be processed, so you can if you wish have a single handler for all mouse events, or one that handles both mouse down and mouse up events and register the same function with the Game Framework for both event types.
See Also
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com