CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

iEvent Struct Reference
[Event handling]

This interface describes any system event. More...

#include <event.h>

Inheritance diagram for iEvent:

iBase csEvent csPoolEvent List of all members.

Public Attributes

uint8 Type
 Event type (one of csevKeyDown etc.). More...

uint8 Category
 Event cathegory (unused by CSWS). More...

uint8 SubCategory
 Even finer granularity. More...

uint8 Flags
 Miscelaneous event flags. More...

csTicks Time
 Time when the event occured. More...

csEventKeyData Key
 Key data of event. More...

csEventMouseData Mouse
 Mouse data of event. More...

csEventJoystickData Joystick
 Joystick data of event. More...

csEventCommandData Command
 Command data of event. More...

csEventNetworkData Network
 Network data of event. More...


Detailed Description

This interface describes any system event.

Events can be generated by hardware (keyboard, mouse) as well as by software (commands and broadcasts). Not all events neccessarily pass through the system event queue; you may organize point-to-point event flows between some plugins and so on.

The events can be generated by the event outlet (see the CreateEvent method in iEventOutlet) if you don't want to create your own implementations of this interface. On the other hand, if you want to provide extra functionality you may subclass iEvent interface and add another interface (say iExtEvent) then you may query that interface using normal SCF QueryInterface method.

Definition at line 124 of file event.h.


Member Data Documentation

uint8 iEvent::Category
 

Event cathegory (unused by CSWS).

Definition at line 129 of file event.h.

csEventCommandData iEvent::Command
 

Command data of event.

Definition at line 145 of file event.h.

uint8 iEvent::Flags
 

Miscelaneous event flags.

Definition at line 133 of file event.h.

csEventJoystickData iEvent::Joystick
 

Joystick data of event.

Definition at line 143 of file event.h.

csEventKeyData iEvent::Key
 

Key data of event.

Definition at line 139 of file event.h.

Referenced by awsEmbeddedComponent::HandleEvent.

csEventMouseData iEvent::Mouse
 

Mouse data of event.

Definition at line 141 of file event.h.

Referenced by awsEmbeddedComponent::HandleEvent.

csEventNetworkData iEvent::Network
 

Network data of event.

Definition at line 147 of file event.h.

uint8 iEvent::SubCategory
 

Even finer granularity.

Definition at line 131 of file event.h.

csTicks iEvent::Time
 

Time when the event occured.

Definition at line 135 of file event.h.

uint8 iEvent::Type
 

Event type (one of csevKeyDown etc.).

Definition at line 127 of file event.h.

Referenced by awsEmbeddedComponent::HandleEvent.


The documentation for this struct was generated from the following file:
Generated for Crystal Space by doxygen 1.2.14