|
PEBL 2.2
Psychology Experiment Building Language - Cross-platform psychological experiment development system
|
The following initiates classes used by functions in the Environment library. More...
Variables | |
| PEBL_Function_Type | FunctionTable [] |
| PlatformTimer | myTimer |
| PlatformKeyboard | myKeyboard |
The following initiates classes used by functions in the Environment library.
Definition at line 1997 of file PEBLEnvironment.cpp.
References PError::AssertType(), PList::Begin(), Evaluator::CallFunction(), PNode::DestroyChildren(), PList::End(), Evaluator::Evaluate(), Evaluator::Evaluate1(), PList::First(), Variant::GetComplexData(), PComplexData::GetList(), Evaluator::GetNodeStackDepth(), OpNode::GetOp(), Evaluator::GetStackDepth(), Variant::GetString(), Evaluator::mFunctionMap, myEval, Evaluator::NodeStackPush(), PList::Nth(), NULL, P_DATA_FUNCTION, PEAT_LIST, PEAT_STRING, Evaluator::Pop(), and Evaluator::Push().
Definition at line 2485 of file PEBLEnvironment.cpp.
References PError::AssertType(), PList::First(), Variant::GetComplexData(), Variant::GetInteger(), PComplexData::GetList(), NULL, PEAT_INTEGER, and PError::SignalWarning().
Definition at line 1986 of file PEBLEnvironment.cpp.
References PEventLoop::Clear(), and Evaluator::mEventLoop.
Definition at line 2642 of file PEBLEnvironment.cpp.
References SDLUtility::CopyFromClipboard().
Definition at line 2628 of file PEBLEnvironment.cpp.
References PError::AssertType(), SDLUtility::CopyToClipboard(), PList::First(), Variant::GetComplexData(), PComplexData::GetList(), and PEAT_STRING.
Definition at line 2587 of file PEBLEnvironment.cpp.
References PError::AssertType(), PEBLUtility::DeleteMyFile(), PList::First(), Variant::GetComplexData(), PComplexData::GetList(), and PEAT_STRING.
Definition at line 2193 of file PEBLEnvironment.cpp.
References PError::ExitQuietly(), PList::First(), Variant::GetComplexData(), Variant::GetInteger(), PComplexData::GetList(), Variant::GetString(), PList::Length(), and PList::Nth().
Definition at line 2563 of file PEBLEnvironment.cpp.
References PError::AssertType(), PEBLUtility::FileExists(), PList::First(), Variant::GetComplexData(), PComplexData::GetList(), and PEAT_STRING.
Definition at line 2273 of file PEBLEnvironment.cpp.
References SDLUtility::GetCurrentScreenResolution(), and PList::PushBack().
This gets the x,y coordinates of the mouse, and returns them in a list
Definition at line 1266 of file PEBLEnvironment.cpp.
References PlatformEnvironment::GetCursorPosition(), and myEnv.
Definition at line 2551 of file PEBLEnvironment.cpp.
References PError::AssertType(), PList::First(), Variant::GetComplexData(), PEBLUtility::GetDirectoryListing(), PComplexData::GetList(), and PEAT_STRING.
Definition at line 2291 of file PEBLEnvironment.cpp.
References SDLUtility::GetDriverList().
Definition at line 2345 of file PEBLEnvironment.cpp.
References SignalFatalError().
Definition at line 2600 of file PEBLEnvironment.cpp.
References PEBLUtility::GetHomeDirectory().
This takes as an argument a textbox and an 'escape' key. Once executed, it will allow all keyboard entry to show up in the text box. Once the escape key is hit, the function will return the text inside the box. If it has a third argument that is non-zero, it will also use any mouse click as an escape key. this triesto use just textedit events
Definition at line 836 of file PEBLEnvironment.cpp.
References PError::AssertType(), PEventLoop::Clear(), PlatformEnvironment::Draw(), DT_EQUAL, DT_TRUE, PList::First(), counted_ptr< X >::get(), Variant::GetComplexData(), PEvent::GetKeyboardEvent(), PComplexData::GetList(), PEvent::GetMouseButtonEvent(), PComplexData::GetObject(), PTextObject::GetText(), PEvent::GetTextInputEvent(), PEvent::GetType(), gEventQueue, PlatformTextBox::HandleKeyPress(), PlatformTextBox::HandleTextInput(), PEBL_KeyboardEvent::key, PList::Length(), PEventLoop::Loop(), Evaluator::mEventLoop, PEBL_KeyboardEvent::modkeys, myEnv, PList::Nth(), NULL, PDT_KEYBOARD, PDT_MOUSE_BUTTON, PDT_TEXT_INPUT, PEAT_STRING, PEAT_TEXTBOX, PEBL_KEYCODE_ANYKEY, PEBL_PRESSED, PEventQueue::PushEvent(), PEventLoop::RegisterEvent(), PlatformTextBox::SetEditable(), PlatformEnvironment::SetKeyRepeat(), PEBL_MouseButtonEvent::state, PEBLUtility::ToLower(), and PEBLUtility::TranslateKeycode().
Definition at line 1305 of file PEBLEnvironment.cpp.
References PError::AssertType(), PList::First(), Variant::GetComplexData(), PComplexData::GetList(), and PEAT_INTEGER.
Definition at line 1387 of file PEBLEnvironment.cpp.
References PError::AssertType(), PList::First(), counted_ptr< X >::get(), PlatformJoystick::GetAxisState(), Variant::GetComplexData(), PComplexData::GetList(), PComplexData::GetObject(), PList::Nth(), PEAT_INTEGER, and PEAT_JOYSTICK.
Definition at line 1422 of file PEBLEnvironment.cpp.
References PError::AssertType(), PList::First(), counted_ptr< X >::get(), PlatformJoystick::GetBallState(), Variant::GetComplexData(), PComplexData::GetList(), PComplexData::GetObject(), PList::Nth(), PEAT_INTEGER, and PEAT_JOYSTICK.
Definition at line 1372 of file PEBLEnvironment.cpp.
References PError::AssertType(), PList::First(), counted_ptr< X >::get(), PlatformJoystick::GetButtonState(), Variant::GetComplexData(), PComplexData::GetList(), PComplexData::GetObject(), PList::Nth(), PEAT_INTEGER, and PEAT_JOYSTICK.
Definition at line 1405 of file PEBLEnvironment.cpp.
References PError::AssertType(), PList::First(), counted_ptr< X >::get(), Variant::GetComplexData(), PlatformJoystick::GetHatState(), PComplexData::GetList(), PComplexData::GetObject(), PList::Nth(), PEAT_INTEGER, and PEAT_JOYSTICK.
Definition at line 1292 of file PEBLEnvironment.cpp.
References PlatformEnvironment::GetMouseState(), and myEnv.
Definition at line 1322 of file PEBLEnvironment.cpp.
References PError::AssertType(), PList::First(), counted_ptr< X >::get(), Variant::GetComplexData(), PComplexData::GetList(), PJoystick::GetNumAxes(), PComplexData::GetObject(), and PEAT_JOYSTICK.
Definition at line 1335 of file PEBLEnvironment.cpp.
References PError::AssertType(), PList::First(), counted_ptr< X >::get(), Variant::GetComplexData(), PComplexData::GetList(), PJoystick::GetNumBalls(), PComplexData::GetObject(), and PEAT_JOYSTICK.
Definition at line 1347 of file PEBLEnvironment.cpp.
References PError::AssertType(), PList::First(), counted_ptr< X >::get(), Variant::GetComplexData(), PComplexData::GetList(), PJoystick::GetNumButtons(), PComplexData::GetObject(), and PEAT_JOYSTICK.
Definition at line 1359 of file PEBLEnvironment.cpp.
References PError::AssertType(), PList::First(), counted_ptr< X >::get(), Variant::GetComplexData(), PComplexData::GetList(), PJoystick::GetNumHats(), PComplexData::GetObject(), and PEAT_JOYSTICK.
Definition at line 1299 of file PEBLEnvironment.cpp.
References PlatformEnvironment::GetNumJoysticks(), and myEnv.
Definition at line 145 of file PEBLEnvironment.cpp.
References PList::First(), Variant::GetComplexData(), Variant::GetCreationTime(), and PComplexData::GetList().
Definition at line 2331 of file PEBLEnvironment.cpp.
Definition at line 1035 of file PEBLEnvironment.cpp.
References PError::AssertType(), PlatformTextBox::FindCursorPosition(), PList::First(), counted_ptr< X >::get(), Variant::GetComplexData(), PComplexData::GetList(), PComplexData::GetObject(), PList::Nth(), PEAT_NUMBER, and PEAT_TEXTBOX.
This function moves a widget to a new location.
Definition at line 111 of file PEBLEnvironment.cpp.
References PlatformTimer::GetTime(), and myTimer.
Definition at line 119 of file PEBLEnvironment.cpp.
References SDLUtility::GetTimeHP(), and pDouble.
Definition at line 135 of file PEBLEnvironment.cpp.
References PlatformTimer::GetTimeOfDay(), and myTimer.
Definition at line 2306 of file PEBLEnvironment.cpp.
References PList::First(), Variant::GetComplexData(), PComplexData::GetList(), PlatformEnvironment::GetScreenModes(), Variant::IsStackSignal(), and myEnv.
Definition at line 2609 of file PEBLEnvironment.cpp.
References PEBLUtility::GetWorkingDirectory().
Definition at line 214 of file PEBLEnvironment.cpp.
References PlatformKeyboard::IsKeyDown(), myKeyboard, PEBL_KEYCODE_ANYKEY, PEBL_KEYCODE_NOTHING, and PEBLUtility::TranslateKeycode().
Definition at line 2805 of file PEBLEnvironment.cpp.
References PList::First(), Variant::GetComplexData(), PComplexData::GetList(), and Variant::IsComplexData().
Definition at line 2758 of file PEBLEnvironment.cpp.
References PList::First(), Variant::GetComplexData(), PComplexData::GetList(), and Variant::IsComplexData().
Definition at line 2839 of file PEBLEnvironment.cpp.
References PList::First(), Variant::GetComplexData(), PComplexData::GetList(), and Variant::IsComplexData().
Definition at line 2917 of file PEBLEnvironment.cpp.
References PList::First(), Variant::GetComplexData(), PComplexData::GetList(), and Variant::IsComplexData().
Definition at line 2540 of file PEBLEnvironment.cpp.
References PError::AssertType(), PList::First(), Variant::GetComplexData(), PComplexData::GetList(), PEBLUtility::IsDirectory(), and PEAT_STRING.
Definition at line 2855 of file PEBLEnvironment.cpp.
References PList::First(), Variant::GetComplexData(), PComplexData::GetList(), and Variant::IsComplexData().
Definition at line 2691 of file PEBLEnvironment.cpp.
References PList::First(), Variant::GetComplexData(), PComplexData::GetList(), and Variant::IsFloat().
Definition at line 2822 of file PEBLEnvironment.cpp.
References PList::First(), Variant::GetComplexData(), PComplexData::GetList(), and Variant::IsComplexData().
Definition at line 2773 of file PEBLEnvironment.cpp.
References PList::First(), Variant::GetComplexData(), PComplexData::GetList(), and Variant::IsComplexData().
Definition at line 2683 of file PEBLEnvironment.cpp.
References PList::First(), Variant::GetComplexData(), PComplexData::GetList(), and Variant::IsInteger().
Definition at line 2740 of file PEBLEnvironment.cpp.
References PList::First(), Variant::GetComplexData(), PComplexData::GetList(), and Variant::IsComplexData().
Definition at line 184 of file PEBLEnvironment.cpp.
References PError::AssertType(), PList::First(), Variant::GetComplexData(), PComplexData::GetList(), PlatformKeyboard::IsKeyDown(), myKeyboard, PEAT_STRING, and PEBLUtility::TranslateString().
Definition at line 199 of file PEBLEnvironment.cpp.
References PError::AssertType(), PList::First(), Variant::GetComplexData(), PComplexData::GetList(), PlatformKeyboard::IsKeyUp(), myKeyboard, PEAT_STRING, and PEBLUtility::TranslateString().
Definition at line 2789 of file PEBLEnvironment.cpp.
References PList::First(), Variant::GetComplexData(), PComplexData::GetList(), and Variant::IsComplexData().
Definition at line 2707 of file PEBLEnvironment.cpp.
References PList::First(), Variant::GetComplexData(), PComplexData::GetList(), and Variant::IsComplexData().
Definition at line 2675 of file PEBLEnvironment.cpp.
References PList::First(), Variant::GetComplexData(), PComplexData::GetList(), and Variant::IsNumber().
Definition at line 2935 of file PEBLEnvironment.cpp.
References PList::First(), Variant::GetComplexData(), PComplexData::GetList(), Variant::IsComplexData(), and PComplexData::IsList().
Definition at line 2900 of file PEBLEnvironment.cpp.
References PList::First(), Variant::GetComplexData(), PComplexData::GetList(), and Variant::IsComplexData().
Definition at line 2700 of file PEBLEnvironment.cpp.
References PList::First(), Variant::GetComplexData(), PComplexData::GetList(), and Variant::IsString().
Definition at line 2667 of file PEBLEnvironment.cpp.
References PList::First(), Variant::GetComplexData(), PComplexData::GetList(), and Variant::IsString().
Definition at line 2723 of file PEBLEnvironment.cpp.
References PList::First(), Variant::GetComplexData(), PComplexData::GetList(), and Variant::IsComplexData().
Definition at line 2869 of file PEBLEnvironment.cpp.
References PList::First(), Variant::GetComplexData(), PComplexData::GetList(), and Variant::IsComplexData().
Definition at line 2884 of file PEBLEnvironment.cpp.
References PList::First(), Variant::GetComplexData(), PComplexData::GetList(), and Variant::IsComplexData().
Definition at line 2357 of file PEBLEnvironment.cpp.
References PList::First(), Variant::GetComplexData(), PComplexData::GetList(), Variant::GetString(), and PEBLUtility::LaunchFile().
Definition at line 2576 of file PEBLEnvironment.cpp.
References PError::AssertType(), PList::First(), Variant::GetComplexData(), PComplexData::GetList(), PEBLUtility::MakeDirectory(), and PEAT_STRING.
Definition at line 2953 of file PEBLEnvironment.cpp.
References PError::AssertType(), PEventLoop::Clear(), DT_EQUAL, DT_GREATER_THAN_OR_EQUAL, PList::First(), counted_ptr< X >::get(), Variant::GetComplexData(), PEvent::GetDummyEvent(), PComplexData::GetList(), PComplexData::GetObject(), PlatformTimer::GetTime(), PEventLoop::Loop(), Evaluator::mEventLoop, myTimer, PDT_MOVIE_END, PDT_TIMER, PEAT_MOVIE, PEventLoop::RegisterEvent(), PEventLoop::RegisterState(), PError::SignalFatalError(), and PEBL_DummyEvent::value.
third argument (state) could impact the first argument interpretation.
Definition at line 1456 of file PEBLEnvironment.cpp.
References PError::AssertType(), DT_EQUAL, DT_FALSE, DT_GREATER_THAN, DT_GREATER_THAN_OR_EQUAL, DT_INSIDE, DT_LESS_THAN, DT_LESS_THAN_OR_EQUAL, DT_NOT_EQUAL, DT_NOT_INSIDE, DT_ON_EDGE, DT_OUTSIDE, DT_TRUE, DTT_INTERVALSTATE, DTT_REGIONSTATE, DTT_VALUESTATE, PList::First(), counted_ptr< X >::get(), Variant::GetComplexData(), PComplexData::GetList(), PComplexData::GetObject(), gEventQueue, Variant::IsNumber(), Variant::IsStackSignal(), Evaluator::mEventLoop, myTimer, PList::Nth(), NULL, PDT_DUMMY, PDT_JOYSTICK_BUTTON, PDT_JOYSTICK_HAT, PDT_KEYBOARD, PDT_MOUSE_BUTTON, PDT_MOUSE_MOVEMENT, PDT_TEXT_INPUT, PDT_TIMER, PDT_WINDOW_RESIZE, PEAT_INTEGER, PEAT_NUMBER, PEAT_STRING, PEBL_MOVEMENT, PEBL_PRESSED, PEBL_RELEASED, PEBL_TEXT_INPUT, PEBL_TIMEOUT, PEBL_UNKNOWN, PEBL_WINDOWWIDTH, PEventLoop::RegisterEvent(), PEventLoop::RegisterState(), PError::SignalFatalError(), PEBLUtility::ToUpper(), and PEBLUtility::TranslateString().
This sets the mouse to a new position.
Definition at line 1275 of file PEBLEnvironment.cpp.
References PError::AssertType(), PList::First(), Variant::GetComplexData(), PComplexData::GetList(), myEnv, PList::Nth(), PEAT_NUMBER, and PlatformEnvironment::SetCursorPosition().
Definition at line 2617 of file PEBLEnvironment.cpp.
References PError::AssertType(), PList::First(), Variant::GetComplexData(), PComplexData::GetList(), PEAT_STRING, and PEBLUtility::SetWorkingDirectory().
Definition at line 229 of file PEBLEnvironment.cpp.
References PError::AssertType(), PList::First(), Variant::GetComplexData(), PComplexData::GetList(), myEnv, PEAT_INTEGER, and PlatformEnvironment::ShowCursor().
Definition at line 2182 of file PEBLEnvironment.cpp.
References PList::First(), Variant::GetComplexData(), PComplexData::GetList(), Variant::GetString(), and PError::SignalFatalError().
Referenced by GetExecutableName().
Definition at line 1851 of file PEBLEnvironment.cpp.
References PEBL_MouseButtonEvent::button, PEBL_MouseWheelEvent::deltax, PEBL_MouseWheelEvent::deltay, PEBL_MouseWheelEvent::direction, PEvent::GetKeyboardEvent(), PEvent::GetMouseButtonEvent(), PEvent::GetMouseWheelEvent(), PEvent::GetType(), PEBL_KeyboardEvent::key, PEventLoop::Loop(), Evaluator::mEventLoop, NULL, PDT_KEYBOARD, PDT_MOUSE_BUTTON, PDT_MOUSE_MOVEMENT, PDT_MOUSE_WHEEL, PDT_TIMER, PEBL_PRESSED, pInt, PList::PushBack(), PEBL_MouseButtonEvent::state, PEBLUtility::TranslateKeycode(), PEBL_MouseButtonEvent::x, PEBL_MouseWheelEvent::x, PEBL_MouseButtonEvent::y, and PEBL_MouseWheelEvent::y.
Definition at line 2367 of file PEBLEnvironment.cpp.
References PList::First(), Variant::GetComplexData(), PComplexData::GetList(), Variant::GetString(), PList::Length(), PList::Nth(), and PEBLUtility::SystemCall().
Referenced by SystemCallUpdate().
Definition at line 2438 of file PEBLEnvironment.cpp.
References Variant::GetComplexData(), PComplexData::GetList(), Variant::GetString(), PList::Length(), PList::Nth(), NULL, pInt, PError::SignalWarning(), and SystemCall().
Definition at line 2251 of file PEBLEnvironment.cpp.
References NULL.
Referenced by PlatformWindow::Initialize().
This function takes as an argument an integer, and returns the string values corresponding to that keycode.
Definition at line 2214 of file PEBLEnvironment.cpp.
References PError::AssertType(), PList::First(), Variant::GetComplexData(), PComplexData::GetList(), PEAT_INTEGER, PEBLMOD_NONE, and PEBLUtility::TranslateKeycode().
This function takes as an argument an integer, and returns the string values corresponding to that keycode.
Definition at line 2232 of file PEBLEnvironment.cpp.
References PError::AssertType(), PList::First(), Variant::GetComplexData(), PComplexData::GetList(), PEAT_STRING, and PEBLUtility::TranslateString().
Definition at line 2656 of file PEBLEnvironment.cpp.
References PList::First(), Variant::GetComplexData(), PComplexData::GetList(), Evaluator::IsVariableName(), and myEval.
Definition at line 155 of file PEBLEnvironment.cpp.
References PError::AssertType(), PEventLoop::Clear(), DT_GREATER_THAN_OR_EQUAL, PList::First(), Variant::GetComplexData(), PEvent::GetDummyEvent(), PComplexData::GetList(), PlatformTimer::GetTime(), PEventLoop::Loop(), Evaluator::mEventLoop, myTimer, PDT_TIMER, PEAT_NUMBER, PEventLoop::RegisterState(), and PEBL_DummyEvent::value.
Definition at line 477 of file PEBLEnvironment.cpp.
References PEventLoop::Clear(), DT_NOT_EQUAL, PEvent::GetDummyEvent(), PEventLoop::Loop(), Evaluator::mEventLoop, myKeyboard, PDT_KEYBOARD, PEBL_KEYCODE_ANYKEY, PEventLoop::RegisterState(), and PEBL_DummyEvent::value.
This function uses the event loop to schedule a single device-test, which checks for the selected key.
Definition at line 337 of file PEBLEnvironment.cpp.
References PEventLoop::Clear(), PEventQueue::Clear(), DT_EQUAL, PEvent::GetDummyEvent(), gEventQueue, PEventLoop::Loop(), Evaluator::mEventLoop, myKeyboard, PDT_KEYBOARD, PEBL_KEYCODE_ANYKEY, PEventLoop::RegisterState(), and PEBL_DummyEvent::value.
Definition at line 501 of file PEBLEnvironment.cpp.
References PError::AssertType(), PEventLoop::Clear(), PEventQueue::Clear(), DT_EQUAL, DT_GREATER_THAN_OR_EQUAL, PList::First(), Variant::GetComplexData(), PEvent::GetDummyEvent(), PComplexData::GetList(), PlatformTimer::GetTime(), gEventQueue, PEventLoop::Loop(), Evaluator::mEventLoop, myKeyboard, myTimer, PDT_KEYBOARD, PDT_TIMER, PEAT_NUMBER, PEBL_KEYCODE_ANYKEY, PEBL_KEYCODE_UNKNOWN, PEventLoop::RegisterState(), PEBLUtility::TranslateKeycode(), and PEBL_DummyEvent::value.
This function uses the event loop to schedule a single device-test, which checks for the selected key.
Definition at line 447 of file PEBLEnvironment.cpp.
References PEventLoop::Clear(), PEventQueue::Clear(), DT_EQUAL, PEvent::GetEventTime(), PEvent::GetKeyboardEvent(), gEventQueue, PEBL_KeyboardEvent::key, PEventLoop::Loop(), Evaluator::mEventLoop, PDT_KEYBOARD, PEBL_KEYCODE_ANYKEY, PEBL_PRESSED, PEventLoop::RegisterEvent(), Variant::SetCreationTime(), and PEBLUtility::TranslateKeycode().
Definition at line 557 of file PEBLEnvironment.cpp.
References PError::AssertType(), PEventLoop::Clear(), PEventQueue::Clear(), DT_EQUAL, DT_GREATER_THAN_OR_EQUAL, PList::First(), Variant::GetComplexData(), PEvent::GetKeyboardEvent(), PComplexData::GetList(), PlatformTimer::GetTime(), gEventQueue, PEBL_KeyboardEvent::key, PEventLoop::Loop(), Evaluator::mEventLoop, myTimer, PDT_KEYBOARD, PDT_TIMER, PEAT_NUMBER, PEBL_KEYCODE_ANYKEY, PEBL_KEYCODE_UNKNOWN, PEBL_PRESSED, PEventLoop::RegisterEvent(), PEventLoop::RegisterState(), and PEBLUtility::TranslateKeycode().
This function uses the event loop to schedule a single device-test, which checks for the selected key.
Definition at line 270 of file PEBLEnvironment.cpp.
References PError::AssertType(), PEventLoop::Clear(), PEventQueue::Clear(), DT_EQUAL, PList::First(), Variant::GetComplexData(), PEvent::GetDummyEvent(), PComplexData::GetList(), gEventQueue, PEventLoop::Loop(), Evaluator::mEventLoop, myKeyboard, PDT_KEYBOARD, PEAT_STRING, PEventLoop::RegisterState(), PEBLUtility::TranslateString(), and PEBL_DummyEvent::value.
Definition at line 711 of file PEBLEnvironment.cpp.
References PError::AssertType(), PList::Begin(), PEventLoop::Clear(), DT_EQUAL, PList::End(), PList::First(), Variant::GetComplexData(), PEvent::GetDummyEvent(), PComplexData::GetList(), PEvent::GetType(), PEventLoop::Loop(), Evaluator::mEventLoop, myKeyboard, PDT_KEYBOARD, PEAT_LIST, PEventLoop::RegisterState(), PEBLUtility::TranslateKeycode(), PEBLUtility::TranslateString(), and PEBL_DummyEvent::value.
This function uses the event loop to schedule a single device-test, which checks for the selected key.
Definition at line 365 of file PEBLEnvironment.cpp.
References PError::AssertType(), PEventLoop::Clear(), PEventQueue::Clear(), DT_EQUAL, PList::First(), Variant::GetComplexData(), PEvent::GetKeyboardEvent(), PComplexData::GetList(), gEventQueue, PEBL_KeyboardEvent::key, PEventLoop::Loop(), Evaluator::mEventLoop, NULL, PDT_KEYBOARD, PEAT_STRING, PEBL_PRESSED, PEventLoop::RegisterEvent(), PEBLUtility::TranslateKeycode(), and PEBLUtility::TranslateString().
Definition at line 408 of file PEBLEnvironment.cpp.
References PError::AssertType(), PEventLoop::Clear(), DT_EQUAL, PList::First(), Variant::GetComplexData(), PEvent::GetKeyboardEvent(), PComplexData::GetList(), gEventQueue, PEBL_KeyboardEvent::key, PEventLoop::Loop(), Evaluator::mEventLoop, PDT_KEYBOARD, PEAT_STRING, PEBL_RELEASED, PEventLoop::RegisterEvent(), PEBLUtility::TranslateKeycode(), and PEBLUtility::TranslateString().
Definition at line 303 of file PEBLEnvironment.cpp.
References PError::AssertType(), PEventLoop::Clear(), DT_NOT_EQUAL, PList::First(), Variant::GetComplexData(), PEvent::GetDummyEvent(), PComplexData::GetList(), PEventLoop::Loop(), Evaluator::mEventLoop, myKeyboard, PDT_KEYBOARD, PEAT_STRING, PEventLoop::RegisterState(), PEBLUtility::TranslateString(), and PEBL_DummyEvent::value.
Definition at line 780 of file PEBLEnvironment.cpp.
References PError::AssertType(), PList::Begin(), PEventLoop::Clear(), PEventQueue::Clear(), DT_EQUAL, PList::End(), PList::First(), Variant::GetComplexData(), PEvent::GetKeyboardEvent(), PComplexData::GetList(), gEventQueue, PEBL_KeyboardEvent::key, PEventLoop::Loop(), Evaluator::mEventLoop, PDT_KEYBOARD, PEAT_LIST, PEBL_PRESSED, PEventLoop::RegisterEvent(), PEBLUtility::TranslateKeycode(), and PEBLUtility::TranslateString().
Definition at line 626 of file PEBLEnvironment.cpp.
References PError::AssertType(), PList::Begin(), PEventLoop::Clear(), PEventQueue::Clear(), DT_EQUAL, DT_GREATER_THAN_OR_EQUAL, PList::End(), PList::First(), Variant::GetComplexData(), PEvent::GetKeyboardEvent(), PComplexData::GetList(), PlatformTimer::GetTime(), PEvent::GetType(), gEventQueue, PEBL_KeyboardEvent::key, PEventLoop::Loop(), Evaluator::mEventLoop, myTimer, PList::Nth(), PDT_KEYBOARD, PDT_TIMER, PEAT_LIST, PEAT_NUMBER, PEBL_PRESSED, PEventLoop::RegisterEvent(), PEventLoop::RegisterState(), PEBLUtility::TranslateKeycode(), and PEBLUtility::TranslateString().
This function uses the event loop to schedule a single device-test, which checks for any type of mouse click. It returns x,y, button, and type of button press.
Definition at line 1064 of file PEBLEnvironment.cpp.
References PEBL_MouseButtonEvent::button, PEventLoop::Clear(), PEBL_MouseWheelEvent::deltax, PEBL_MouseWheelEvent::deltay, PEBL_MouseWheelEvent::direction, DT_TRUE, PEvent::GetMouseButtonEvent(), PEvent::GetMouseWheelEvent(), PEvent::GetType(), gEventQueue, PEventLoop::Loop(), Evaluator::mEventLoop, NULL, PDT_MOUSE_BUTTON, PDT_MOUSE_WHEEL, PEBL_PRESSED, pInt, PList::PushBack(), PEventLoop::RegisterEvent(), PEBL_MouseButtonEvent::state, PEBL_MouseButtonEvent::x, PEBL_MouseWheelEvent::x, PEBL_MouseButtonEvent::y, and PEBL_MouseWheelEvent::y.
This function uses the event loop to schedule a single device-test, which checks for any type of mouse click. It returns x,y, button, and type of button press.
Definition at line 1154 of file PEBLEnvironment.cpp.
References PError::AssertType(), PEBL_MouseButtonEvent::button, PEventLoop::Clear(), PEBL_MouseWheelEvent::deltax, PEBL_MouseWheelEvent::deltay, PEBL_MouseWheelEvent::direction, DT_GREATER_THAN_OR_EQUAL, DT_TRUE, PList::First(), Variant::GetComplexData(), PComplexData::GetList(), PEvent::GetMouseButtonEvent(), PEvent::GetMouseWheelEvent(), PlatformTimer::GetTime(), PEvent::GetType(), gEventQueue, PEventLoop::Loop(), Evaluator::mEventLoop, myTimer, PDT_MOUSE_BUTTON, PDT_MOUSE_WHEEL, PDT_TIMER, PEAT_NUMBER, PEBL_PRESSED, pInt, PList::PushBack(), PEventLoop::RegisterEvent(), PEventLoop::RegisterState(), PEBL_MouseButtonEvent::state, PEBL_MouseButtonEvent::x, PEBL_MouseWheelEvent::x, PEBL_MouseButtonEvent::y, and PEBL_MouseWheelEvent::y.
| PEBL_Function_Type PEBLEnvironment::FunctionTable[] |
Definition at line 297 of file Functions.h.
Referenced by Loader::LoadLibraryFunctions().
| PlatformKeyboard PEBLEnvironment::myKeyboard |
Definition at line 104 of file PEBLEnvironment.cpp.
Referenced by IsAnyKeyDown(), IsKeyDown(), IsKeyUp(), WaitForAllKeysUp(), WaitForAnyKeyDown(), WaitForAnyKeyDownWithTimeout(), WaitForKeyDown(), WaitForKeyListDown(), and WaitForKeyUp().
| PlatformTimer PEBLEnvironment::myTimer |
Definition at line 103 of file PEBLEnvironment.cpp.
Referenced by GetTime(), GetTimeOfDay(), PEventLoop::Loop(), PlayMovie(), PEBLObjects::RecordToBuffer(), RegisterEvent(), Wait(), WaitForAnyKeyDownWithTimeout(), WaitForAnyKeyPressWithTimeout(), WaitForListKeyPressWithTimeout(), and WaitForMouseButtonWithTimeout().