
Software KeTop
T50VGA
62
User's Manual, Version: 1.3
© KEBA 2007
7.4.7
Functions for Subscribing Events
These functions are used to subscribe/unsubscribe callback functions for different events.
Joystick, override potentiometer, handwheel and keypad can be used as events.
KtpInstallWheelEventCallback
Declaration
UINT8 KtpInstallWheelEventCallback
(/*in*/TktpWheelEventCallback pWheelProc, int *cookie);
Description
Subscribes a callback function for the WheelEvent and returns an index
(cookie) for the callback function.
Arguments
TKtpWheelEventCallback pWheelProc: callback function to be called
when the event occurs.
int cookie: The index for the callback function is required for removing
the callback function.
KtpInstallWheelEventMessage
Declaration
UINT8 KtpInstallWheelEventMessage (HWND hWnd, int *cookie);
Description
Subscribes a WindowHandler for the WheelEvent and returns an index
(cookie).
Arguments
HWND hWnd: WindowHandler, where the message is sent to.
int cookie: Index, is required for removing the WindowHandler.
KtpRemoveWheelEventCallback
Declaration
UINT8 KtpRemoveWheelEventCallback (int cookie);
Description
Removes the WheelEventCallback function.
Arguments
int cookie: index for the callback function to be removed.
KtpRemoveWheelEventMessage
Declaration
UINT8 KtpRemoveWheelEventMessage (int cookie)
Description
Removes the WindowHandler.
Arguments
int cookie: index for the WindowHandler to be removed.
KtpInstallOvrEventCallback
Declaration
UINT8 KtpInstallOvrEventCallback (/*in*/ TKtpOvrEventCall-
back pOvrProc, /*out*/ int *cookie);
Description
Subscribes a callback function for the OverrideEvent and returns an
index (cookie) for the callback function.
Arguments
TKtpOvrEventCallback pOvrProc: callback function to be called when
the event occurs.
int cookie: The index for the callback function is required for removing
the callback function.
KtpInstallOvrEventMessage
Declaration
UINT8 KtpInstallOvrEventMessage (HWND hWnd, int *cookie);
Description
Subscribes a WindowHandler for the OverrideEvent and returns an
index (cookie) for the WindowHandler.
Arguments
HWND hWnd: WindowHandler, where the message is sent to.
int cookie: Index, is required for removing the WindowHandler.