#include <lljoystickbutton.h>
Definition at line 48 of file lljoystickbutton.h.
LLJoystick::LLJoystick | ( | const LLString & | name, | |
LLRect | rect, | |||
const LLString & | default_image, | |||
const LLString & | selected_image, | |||
EJoystickQuadrant | initial | |||
) |
Definition at line 61 of file lljoystickbutton.cpp.
References onHeldDown(), LLUICtrl::setCallbackUserData(), and LLButton::setHeldDownCallback().
Reimplemented from LLButton.
Reimplemented in LLJoystickCameraRotate, and LLJoystickCameraZoom.
Definition at line 130 of file lljoystickbutton.cpp.
References LLButton::handleMouseDown(), mFirstMouse, mLastMouse, LLButton::mMouseDownTimer, LLFrameTimer::reset(), and LLCoord::set().
Referenced by LLJoystickCameraZoom::handleMouseDown(), and LLJoystickCameraRotate::handleMouseDown().
Reimplemented from LLButton.
Definition at line 142 of file lljoystickbutton.cpp.
References FALSE, LLButton::handleMouseUp(), LLView::hasMouseCapture(), mHeldDown, mLastMouse, onMouseUp(), and LLCoord::set().
Reimplemented from LLButton.
Definition at line 157 of file lljoystickbutton.cpp.
References LLButton::handleHover(), LLView::hasMouseCapture(), mLastMouse, and LLCoord::set().
virtual void LLJoystick::onMouseUp | ( | ) | [inline, virtual] |
Reimplemented in LLJoystickAgentSlide.
Definition at line 58 of file lljoystickbutton.h.
Referenced by handleMouseUp().
virtual void LLJoystick::onHeldDown | ( | ) | [pure virtual] |
Implemented in LLJoystickAgentTurn, LLJoystickAgentSlide, LLJoystickCameraRotate, LLJoystickCameraTrack, and LLJoystickCameraZoom.
Referenced by LLJoystick().
F32 LLJoystick::getElapsedHeldDownTime | ( | ) |
Definition at line 167 of file lljoystickbutton.cpp.
References LLButton::getHeldDownTime(), and mHeldDown.
Referenced by LLJoystickCameraZoom::getOrbitRate(), LLJoystickCameraRotate::getOrbitRate(), LLJoystickAgentTurn::onHeldDown(), and LLJoystickAgentSlide::onMouseUp().
void LLJoystick::onHeldDown | ( | void * | userdata | ) | [static] |
void LLJoystick::setInitialQuadrant | ( | EJoystickQuadrant | initial | ) | [inline] |
LLXMLNodePtr LLJoystick::getXML | ( | bool | save_children = true |
) | const [virtual] |
Reimplemented from LLButton.
Definition at line 248 of file lljoystickbutton.cpp.
References LLButton::addImageAttributeToXML(), LLButton::getHAlign(), LLButton::getImageSelectedID(), LLButton::getImageSelectedName(), LLButton::getImageUnselectedID(), LLButton::getImageUnselectedName(), LLButton::getScaleImage(), LLUICtrl::getXML(), mInitialQuadrant, LLFontGL::nameFromHAlign(), nameFromQuadrant(), and TRUE.
LLString LLJoystick::nameFromQuadrant | ( | const EJoystickQuadrant | quadrant | ) | [static] |
EJoystickQuadrant LLJoystick::quadrantFromName | ( | const LLString & | name | ) | [static] |
Definition at line 219 of file lljoystickbutton.cpp.
References JQ_DOWN, JQ_LEFT, JQ_ORIGIN, JQ_RIGHT, and JQ_UP.
Referenced by selectQuadrant().
EJoystickQuadrant LLJoystick::selectQuadrant | ( | LLXMLNodePtr | node | ) | [static] |
Definition at line 192 of file lljoystickbutton.cpp.
References JQ_RIGHT, and quadrantFromName().
Referenced by LLJoystickAgentSlide::fromXML(), and LLJoystickAgentTurn::fromXML().
void LLJoystick::updateSlop | ( | ) | [protected, virtual] |
Reimplemented in LLJoystickCameraRotate, and LLJoystickCameraZoom.
Definition at line 85 of file lljoystickbutton.cpp.
References LLRectBase< Type >::getHeight(), LLView::getRect(), LLRectBase< Type >::getWidth(), JQ_DOWN, JQ_LEFT, JQ_ORIGIN, JQ_RIGHT, JQ_UP, llendl, llerrs, mHorizSlopFar, mHorizSlopNear, mInitialOffset, mInitialQuadrant, mVertSlopFar, mVertSlopNear, LLCoord::mX, LLCoord::mY, and LLCoord::set().
Referenced by LLJoystickAgentSlide::onHeldDown(), and LLJoystickAgentTurn::onHeldDown().
EJoystickQuadrant LLJoystick::mInitialQuadrant [protected] |
Definition at line 75 of file lljoystickbutton.h.
Referenced by getXML(), LLJoystickCameraZoom::handleMouseDown(), LLJoystickCameraRotate::handleMouseDown(), LLJoystickAgentSlide::onMouseUp(), setInitialQuadrant(), LLJoystickCameraZoom::updateSlop(), and updateSlop().
LLCoordGL LLJoystick::mInitialOffset [protected] |
Definition at line 76 of file lljoystickbutton.h.
Referenced by LLJoystickCameraRotate::handleMouseDown(), LLJoystickCameraZoom::onHeldDown(), LLJoystickCameraTrack::onHeldDown(), LLJoystickCameraRotate::onHeldDown(), LLJoystickAgentSlide::onHeldDown(), LLJoystickAgentTurn::onHeldDown(), LLJoystickCameraZoom::updateSlop(), and updateSlop().
LLCoordGL LLJoystick::mLastMouse [protected] |
Definition at line 77 of file lljoystickbutton.h.
Referenced by handleHover(), handleMouseDown(), handleMouseUp(), LLJoystickCameraZoom::onHeldDown(), LLJoystickCameraTrack::onHeldDown(), LLJoystickCameraRotate::onHeldDown(), LLJoystickAgentSlide::onHeldDown(), and LLJoystickAgentTurn::onHeldDown().
LLCoordGL LLJoystick::mFirstMouse [protected] |
Definition at line 78 of file lljoystickbutton.h.
Referenced by LLJoystickCameraZoom::handleMouseDown(), handleMouseDown(), LLJoystickCameraZoom::onHeldDown(), LLJoystickCameraTrack::onHeldDown(), LLJoystickCameraRotate::onHeldDown(), LLJoystickAgentSlide::onHeldDown(), and LLJoystickAgentTurn::onHeldDown().
S32 LLJoystick::mVertSlopNear [protected] |
Definition at line 79 of file lljoystickbutton.h.
Referenced by LLJoystickCameraRotate::handleMouseDown(), LLJoystickCameraZoom::onHeldDown(), LLJoystickCameraTrack::onHeldDown(), LLJoystickCameraRotate::onHeldDown(), LLJoystickAgentSlide::onHeldDown(), LLJoystickAgentTurn::onHeldDown(), LLJoystickCameraZoom::updateSlop(), LLJoystickCameraRotate::updateSlop(), and updateSlop().
S32 LLJoystick::mVertSlopFar [protected] |
Definition at line 80 of file lljoystickbutton.h.
Referenced by LLJoystickCameraRotate::handleMouseDown(), LLJoystickCameraZoom::onHeldDown(), LLJoystickAgentSlide::onHeldDown(), LLJoystickAgentTurn::onHeldDown(), LLJoystickCameraZoom::updateSlop(), LLJoystickCameraRotate::updateSlop(), and updateSlop().
S32 LLJoystick::mHorizSlopNear [protected] |
Definition at line 81 of file lljoystickbutton.h.
Referenced by LLJoystickCameraRotate::handleMouseDown(), LLJoystickCameraRotate::onHeldDown(), LLJoystickAgentSlide::onHeldDown(), LLJoystickCameraZoom::updateSlop(), LLJoystickCameraRotate::updateSlop(), and updateSlop().
S32 LLJoystick::mHorizSlopFar [protected] |
Definition at line 82 of file lljoystickbutton.h.
Referenced by LLJoystickCameraRotate::handleMouseDown(), LLJoystickCameraZoom::updateSlop(), LLJoystickCameraRotate::updateSlop(), and updateSlop().
BOOL LLJoystick::mHeldDown [protected] |
Definition at line 83 of file lljoystickbutton.h.
Referenced by getElapsedHeldDownTime(), and handleMouseUp().
LLFrameTimer LLJoystick::mHeldDownTimer [protected] |
Definition at line 84 of file lljoystickbutton.h.