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

EventSupplier Class Reference

Inheritance diagram for EventSupplier:

Inheritance graph
[legend]
List of all members.

Public Member Functions

bool PollEvent (SDL_Event *event)
 Polls for currently pending events, and returns true if there are any pending events, or false if there are none available.
bool PeepEvent (SDL_Event *event)
 Checks if an event is in the queue.
int WaitEvent (SDL_Event *event)
 Waits indefinitely for the next available event.

Member Function Documentation

bool EventSupplier::PeepEvent SDL_Event *  event  )  [inline, virtual]
 

Checks if an event is in the queue.

If there is, it will be copied into the event structure, WITHOUT being removed from the event queue.

Parameters:
event pointer to an event structure
Returns:
true - events are available

Reimplemented from PG_SDLEventSupplier.

Definition at line 90 of file paradialog.cpp.

References peekEvent().

bool EventSupplier::PollEvent SDL_Event *  event  )  [inline, virtual]
 

Polls for currently pending events, and returns true if there are any pending events, or false if there are none available.

If event is not NULL, the next event is removed from the queue and stored in that area.

Parameters:
event pointer to an event structure
Returns:
true - events are available

Reimplemented from PG_SDLEventSupplier.

Definition at line 76 of file paradialog.cpp.

References PG_SDLEventSupplier::CombineMouseMotionEvents(), and getQueuedEvent().

int EventSupplier::WaitEvent SDL_Event *  event  )  [inline, virtual]
 

Waits indefinitely for the next available event.

Parameters:
event pointer to an event structure
Returns:
return 0 if there was an error while waiting for events

Reimplemented from PG_SDLEventSupplier.

Definition at line 100 of file paradialog.cpp.

References PG_SDLEventSupplier::CombineMouseMotionEvents(), getQueuedEvent(), and releasetimeslice().


The documentation for this class was generated from the following file:
Generated on Tue Jun 24 02:17:17 2008 for Advanced Strategic Command by  doxygen 1.4.2