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

SDLDriver::CEventSDL Class Reference

Inheritance diagram for SDLDriver::CEventSDL:

Inheritance graph
[legend]
Collaboration diagram for SDLDriver::CEventSDL:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CEventSDL (SDL_Event *e)
int is_ctrl_pressed ()
char get_key_ascii_value ()
int get_type ()

Detailed Description

Our implementation class for an event, using the Simple DirectMedia Layer (SDL) available at http://www.libsdl.org.

Definition at line 18 of file sdl_cevent.cpp.


Constructor & Destructor Documentation

SDLDriver::CEventSDL::CEventSDL SDL_Event *  e  )  [inline]
 

Creates an event object. Used by CEventSystemSDL's get_next_event() method. Note that it is someone else's responsibility to delete the event it's given; ultimately this responsibility is handled by the CGame class during its event loop.

Definition at line 28 of file sdl_cevent.cpp.


Member Function Documentation

char SDLDriver::CEventSDL::get_key_ascii_value  )  [inline, virtual]
 

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

Implements CEvent.

Definition at line 33 of file sdl_cevent.cpp.

int SDLDriver::CEventSDL::get_type  )  [inline, virtual]
 

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

Implements CEvent.

Definition at line 36 of file sdl_cevent.cpp.

References CEvent::TYPE_APPLICATION_EXIT, and CEvent::TYPE_KEY_DOWN.

int SDLDriver::CEventSDL::is_ctrl_pressed  )  [inline, virtual]
 

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

Implements CEvent.

Definition at line 30 of file sdl_cevent.cpp.


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