GM_setKeyUpFunc

Sets the key up callback function

Declaration

void MGLAPI GM_setKeyUpFunc(
    GM_keyUpFunc func)
typedef void (*GM_keyUpFunc)(
    event_t *evt)

Prototype In

gm/gm.h

Parameters

func

Key up callback function to register

 

Description

This function sets the key up 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 key up 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 key events if you wish.

See Also

GM_setKeyDownFunc, GM_setKeyRepeatFunc

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com