#include <pgsdleventsupplier.h>
Inheritance diagram for PG_SDLEventSupplier:

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. | |
| int | GetMouseState (int &x, int &y) |
| Get the current mouse position. | |
Protected Member Functions | |
| void | CombineMouseMotionEvents (SDL_Event *event) |
| Mouse motion events can fill the event queue and should also be processed without much delay. | |
Definition at line 47 of file pgsdleventsupplier.h.
|
|
Mouse motion events can fill the event queue and should also be processed without much delay. This function is passed a newly received Event. It checks if it is a mouse motion event and, if this is the case, checks the event queue for more mouse motion events, which are then incorporated into the current event and removed from the queue.
Definition at line 33 of file pgsdleventsupplier.cpp. References PeepEvent(), and WaitEvent(). Referenced by PollEvent(), EventSupplier::PollEvent(), WaitEvent(), and EventSupplier::WaitEvent(). |
|
||||||||||||
|
Get the current mouse position.
Implements PG_EventSupplier. Definition at line 70 of file pgsdleventsupplier.cpp. |
|
|
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.
Implements PG_EventSupplier. Reimplemented in EventSupplier. Definition at line 51 of file pgsdleventsupplier.cpp. Referenced by CombineMouseMotionEvents(). |
|
|
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.
Implements PG_EventSupplier. Reimplemented in EventSupplier. Definition at line 56 of file pgsdleventsupplier.cpp. References CombineMouseMotionEvents(). |
|
|
Waits indefinitely for the next available event.
Implements PG_EventSupplier. Reimplemented in EventSupplier. Definition at line 64 of file pgsdleventsupplier.cpp. References CombineMouseMotionEvents(). Referenced by CombineMouseMotionEvents(). |
1.4.2