Defined in:Returns the callback function that is invoked when the escape key is pressed.
InputMgr::KeyCallback *GetEscapeCallback(void) const;
GetEscapeCallbackfunction returns a pointer to the callback function that is called whenever the escape key is pressed and the keyboard is in game input mode. By default, there is no escape callback function installed.
KeyCallbacktype is defined as follows.
typedef void KeyCallback(void *);
GetEscapeCallbackfunction is normally used to save the current escape callback function before it is changed or set to
InputMgr::SetEscapeCallbackfunction. In this case, the
InputMgr::GetEscapeCookiefunction should also be called to save the current cookie value expected by the escape callback function. These two values can be passed to the
SetEscapeCallbackat a later time to restore the previously installed callback function.