|
System Utilities
C4Engine.h
class KeyboardEventHandlerTheKeyboardEventHandler class encapsulates a keyboard event handler function.
Definition
Constructor
Parameters
Description
The KeyboardEventHandler class encapsulates a procedure that is invoked when a keyboard event occurs. Once an instance of the KeyboardEventHandler class has been constructed, it can be installed by calling the Engine::InstallKeyboardEventHandler function.When a keyboard event occurs, the procedures corresponding to all installed keyboard event handlers are invoked. The HandlerProc type is defined as follows.
eventType parameter specifies what type of keyboard event occurred and can be one of the following values.
key parameter specifies the ASCII code corresponding to the key that was involved in the event. The modifiers parameter specifies which modifier keys were held down when the event occurred. It currently can be zero or the following value.
data parameter is the value passed to the KeyboardEventHandler constructor.A keyboard event handler is uninstalled by destroying its associated class instance. Base Classes
|