Class TEventDispatcher

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TEventDispatcher = class(TCustomEventReceiver)

Description

A simple implementation of TCustomEventReceiver providing event properties.
An event dispatcher is used to handle device events by type, thus simplifying the code.
In a future release, event handling might be integrated into the device and/or other classes, rendering this class deprecated.

Hierarchy

Overview

Methods

Public function HandleEvent(Event: TIrrlichtEvent): Boolean; override;

Properties

Public property OnEvent: TIrrlichtEventHandler read FOnEvent write FOnEvent;
Public property OnGUIEvent: TGUIEventHandler read FOnGUIEvent write FOnGUIEvent;
Public property OnJoystickEvent: TJoystickEventHandler read FOnJoystickEvent write FOnJoystickEvent;
Public property OnKeyboardEvent: TKeyboardEventHandler read FOnKeyboardEvent write FOnKeyboardEvent;
Public property OnLogEvent: TLogEventHandler read FOnLogEvent write FOnLogEvent;
Public property OnMouseEvent: TMouseEventHandler read FOnMouseEvent write FOnMouseEvent;
Public property OnUserEvent: TUserEventHandler read FOnUserEvent write FOnUserEvent;

Description

Methods

Public function HandleEvent(Event: TIrrlichtEvent): Boolean; override;

Dispatches an event.
Implements TCustomEventReceiver.

Properties

Public property OnEvent: TIrrlichtEventHandler read FOnEvent write FOnEvent;

Called whenever an event could not be successfully dispatched through the type-specific handlers.

Public property OnGUIEvent: TGUIEventHandler read FOnGUIEvent write FOnGUIEvent;

Called for GUI events.

Public property OnJoystickEvent: TJoystickEventHandler read FOnJoystickEvent write FOnJoystickEvent;

Called for joystick events.

Public property OnKeyboardEvent: TKeyboardEventHandler read FOnKeyboardEvent write FOnKeyboardEvent;

Called for keyboard events.

Public property OnLogEvent: TLogEventHandler read FOnLogEvent write FOnLogEvent;

Called for logger events.

Public property OnMouseEvent: TMouseEventHandler read FOnMouseEvent write FOnMouseEvent;

Called for mouse events.

Public property OnUserEvent: TUserEventHandler read FOnUserEvent write FOnUserEvent;

Called for user defined events.


Generated by PasDoc 0.12.1 on 2012-09-14 17:32:22