Main Page | Namespace List | Class Hierarchy | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages

CEvent Class Reference

#include <cevent.h>

Inheritance diagram for CEvent:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual int is_ctrl_pressed ()=0
virtual char get_key_ascii_value ()=0
virtual int get_type ()=0

Static Public Attributes

const int TYPE_KEY_DOWN = 1
const int TYPE_APPLICATION_EXIT = 2

Detailed Description

Abstract event class that represents low-level input events in the system. This is currently very rudimentary and only really supports the methods necessary for a very basic application.

Definition at line 24 of file cevent.h.


Member Function Documentation

virtual char CEvent::get_key_ascii_value  )  [pure virtual]
 

If the event is of type TYPE_KEY_DOWN, returns the ASCII value of the key pressed.

Implemented in SDLDriver::CEventSDL.

virtual int CEvent::get_type  )  [pure virtual]
 

Returns the type of the event (one of the TYPE_* constants).

Implemented in SDLDriver::CEventSDL.

virtual int CEvent::is_ctrl_pressed  )  [pure virtual]
 

Returns whether the CTRL key modifier was pressed when the event occurred.

Implemented in SDLDriver::CEventSDL.


Member Data Documentation

const int CEvent::TYPE_APPLICATION_EXIT = 2 [static]
 

The application has been told to exit (e.g., the user clicked on the application window's close box, etc.).

Definition at line 31 of file cevent.h.

const int CEvent::TYPE_KEY_DOWN = 1 [static]
 

A key has been pressed down.

Definition at line 27 of file cevent.h.


The documentation for this class was generated from the following file:
Generated on Wed Aug 27 11:58:49 2003 for GFW by doxygen 1.3.3