LLJoystick Class Reference

#include <lljoystickbutton.h>

Inheritance diagram for LLJoystick:

Inheritance graph
[legend]
Collaboration diagram for LLJoystick:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLJoystick (const LLString &name, LLRect rect, const LLString &default_image, const LLString &selected_image, EJoystickQuadrant initial)
virtual BOOL handleMouseDown (S32 x, S32 y, MASK mask)
virtual BOOL handleMouseUp (S32 x, S32 y, MASK mask)
virtual BOOL handleHover (S32 x, S32 y, MASK mask)
virtual void onMouseUp ()
virtual void onHeldDown ()=0
F32 getElapsedHeldDownTime ()
void setInitialQuadrant (EJoystickQuadrant initial)
virtual LLXMLNodePtr getXML (bool save_children=true) const

Static Public Member Functions

static void onHeldDown (void *userdata)
static LLString nameFromQuadrant (const EJoystickQuadrant quadrant)
static EJoystickQuadrant quadrantFromName (const LLString &name)
static EJoystickQuadrant selectQuadrant (LLXMLNodePtr node)

Protected Member Functions

virtual void updateSlop ()

Protected Attributes

EJoystickQuadrant mInitialQuadrant
LLCoordGL mInitialOffset
LLCoordGL mLastMouse
LLCoordGL mFirstMouse
S32 mVertSlopNear
S32 mVertSlopFar
S32 mHorizSlopNear
S32 mHorizSlopFar
BOOL mHeldDown
LLFrameTimer mHeldDownTimer


Detailed Description

Definition at line 48 of file lljoystickbutton.h.


Constructor & Destructor Documentation

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().

Here is the call graph for this function:


Member Function Documentation

BOOL LLJoystick::handleMouseDown ( S32  x,
S32  y,
MASK  mask 
) [virtual]

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().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLJoystick::handleMouseUp ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLButton.

Definition at line 142 of file lljoystickbutton.cpp.

References FALSE, LLButton::handleMouseUp(), LLView::hasMouseCapture(), mHeldDown, mLastMouse, onMouseUp(), and LLCoord::set().

Here is the call graph for this function:

BOOL LLJoystick::handleHover ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLButton.

Definition at line 157 of file lljoystickbutton.cpp.

References LLButton::handleHover(), LLView::hasMouseCapture(), mLastMouse, and LLCoord::set().

Here is the call graph for this function:

virtual void LLJoystick::onMouseUp (  )  [inline, virtual]

Reimplemented in LLJoystickAgentSlide.

Definition at line 58 of file lljoystickbutton.h.

Referenced by handleMouseUp().

Here is the caller graph for this function:

virtual void LLJoystick::onHeldDown (  )  [pure virtual]

Implemented in LLJoystickAgentTurn, LLJoystickAgentSlide, LLJoystickCameraRotate, LLJoystickCameraTrack, and LLJoystickCameraZoom.

Referenced by LLJoystick().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLJoystick::onHeldDown ( void *  userdata  )  [static]

Reimplemented from LLButton.

Definition at line 180 of file lljoystickbutton.cpp.

References TRUE.

void LLJoystick::setInitialQuadrant ( EJoystickQuadrant  initial  )  [inline]

Definition at line 63 of file lljoystickbutton.h.

References mInitialQuadrant.

LLXMLNodePtr LLJoystick::getXML ( bool  save_children = true  )  const [virtual]

LLString LLJoystick::nameFromQuadrant ( const EJoystickQuadrant  quadrant  )  [static]

Definition at line 208 of file lljoystickbutton.cpp.

References JQ_DOWN, JQ_LEFT, JQ_ORIGIN, JQ_RIGHT, and JQ_UP.

Referenced by getXML().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLJoystick::updateSlop (  )  [protected, virtual]


Member Data Documentation

Definition at line 83 of file lljoystickbutton.h.

Referenced by getElapsedHeldDownTime(), and handleMouseUp().

Definition at line 84 of file lljoystickbutton.h.


The documentation for this class was generated from the following files:

Generated on Fri May 16 08:50:58 2008 for SecondLife by  doxygen 1.5.5