GM_setKeyRepeatFunc

Sets the key repeat callback function

Declaration

void MGLAPI GM_setKeyRepeatFunc(
    GM_keyRepeatFunc func)
typedef void (*GM_keyRepeatFunc)(
    event_t *evt)

Prototype In

gm/gm.h

Parameters

func

Key repeat callback function to register

 

Description

This function sets the key repeat 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 repeat 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, or one that handles both key down and key repeat events and register the same function with the Game Framework for both event types.

See Also

GM_setKeyDownFunc, GM_setKeyUpFunc

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