|
PEBL 2.2
Psychology Experiment Building Language - Cross-platform psychological experiment development system
|
#include <PlatformEventQueue.h>
Public Member Functions | |
| PlatformEventQueue () | |
| virtual | ~PlatformEventQueue () |
| virtual void | Prime () |
| PlatformEventQueue () | |
| virtual | ~PlatformEventQueue () |
| virtual void | Prime () |
Public Member Functions inherited from PEventQueue | |
| PEventQueue () | |
| virtual | ~PEventQueue () |
| virtual PEBL_DEVICE_TYPE | GetFirstEventType () |
| virtual void | PopEvent () |
| virtual void | PushEvent (PEvent &evt) |
| virtual PEvent | GetFirstEvent () |
| virtual bool | IsEmpty () |
| virtual int | GetState (int intface) const |
| virtual PEBL_DEVICE_TYPE | GetDeviceType () |
| virtual void | Clear () |
Public Member Functions inherited from PDevice | |
| PDevice () | |
| The Standard constructor. | |
| virtual | ~PDevice () |
| The Standard destructor. | |
Additional Inherited Members | |
Protected Attributes inherited from PEventQueue | |
| queue< PEvent > | mEventQueue |
Headless platform event queue - always empty, no events Used for validation mode where no actual interaction occurs
Definition at line 32 of file sdl/PlatformEventQueue.h.
| PlatformEventQueue::PlatformEventQueue | ( | ) |
Definition at line 49 of file sdl/PlatformEventQueue.cpp.
|
virtual |
Definition at line 53 of file sdl/PlatformEventQueue.cpp.
| PlatformEventQueue::PlatformEventQueue | ( | ) |
|
virtual |
|
virtual |
The Prime method takes any all events waiting in the SDL event queue, converts them to PEvents, stamps them with a timestamp, and puts them into the platform-generic event queue.
Reimplemented from PEventQueue.
Definition at line 62 of file sdl/PlatformEventQueue.cpp.
References VariableMap::AddVariable(), PEBL_MouseButtonEvent::button, PEBL_MouseWheelEvent::deltax, PEBL_MouseWheelEvent::deltay, PEBL_MouseWheelEvent::direction, PlatformEnvironment::Draw(), PError::ExitQuietly(), Evaluator::gGlobalVariableMap, PEBL_WindowEvent::h, PEBL_KeyboardEvent::key, PEBL_TextInputEvent::length, PEventQueue::mEventQueue, PEBL_KeyboardEvent::modkeys, myEnv, myEval, PDT_KEYBOARD, PDT_MOUSE_BUTTON, PDT_MOUSE_MOVEMENT, PDT_MOUSE_WHEEL, PDT_MOVIE_END, PDT_TEXT_INPUT, PDT_WINDOW_RESIZE, PEBL_PRESSED, PEBL_RELEASED, PEBL_MouseMovementEvent::relx, PEBL_MouseMovementEvent::rely, PEBL_KeyboardEvent::scancode, PEvent::SetKeyboardEvent(), PEvent::SetMouseButtonEvent(), PEvent::SetMouseMovementEvent(), PEvent::SetMouseWheelEvent(), PEvent::SetTextInputEvent(), PEvent::SetWindowEvent(), PError::SignalWarning(), PEBL_TextInputEvent::start, PEBL_KeyboardEvent::state, PEBL_MouseButtonEvent::state, PEBL_TextInputEvent::text, PEBL_WindowEvent::w, PEBL_TextInputEvent::window, PEBL_MouseMovementEvent::x, PEBL_MouseButtonEvent::x, PEBL_MouseWheelEvent::x, PEBL_MouseMovementEvent::y, PEBL_MouseButtonEvent::y, and PEBL_MouseWheelEvent::y.
Referenced by PEventLoop::Loop1().
|
virtual |
Reimplemented from PEventQueue.