Next: Nonvirtual member functions
Up: Mouse
Previous: Enumerationslists or character
- DisplayDevice *dispDev - display to use for device-specific
functionality, such as checking for events, determining the pointer
position, etc.
- MoveMode moveMode - current mode the mouse is in.
- int activePickMode - if the current mode is PICKING,
this variable indicates which pick mode is active.
- int pickInProgress - if this is zero, no picking operation is
currently in progress (which means that it is NOT that case that a
mouse button has been pressed and selected something, with the mouse button
still left down). If something is currently being selected with the mouse
and the button is still down, this flag indicates which button is being
used. In fact, pickInProgress = pick-button + 1.
- int moveObj - if the current mode is LIGHT, this
variable indicates which light to rotate.
- int currX, currY, oldX, oldY - current and previous positions
of the pointer, measured in pixels from the lower-left corner of the
global display screen.
- float transInc, rotInc, scaleInc - the amount of change to
apply each time a translation, rotation, or scaling operation is requested.
- float xRotVel, yRotVel, zRotVel - current angular velocity
of the scene; when the system has angular velocity, even if no event is
generated by the Mouse, the current scene will be rotated by the
angular velocity amount.
- PopupMenu *mouseMenu - the object which contains the definition
of the pop-up menu which is activated when the third button is pressed.
- NameList<NameList<char *> *> userMenuList - a list of
NameList objects which hold the definitions of user menus. Each name
in userMenuList is the title of a submenu to be added to the main
pop-up menu, with an associated list of names which define the submenu.
This is used to store the user-defined pop-up menu commands.
- <NameList<char *> *mainUserMenu - this is the one
user-controlled menu which is always added to the main menu. The user can
add two types of items to the main menu:
- Single commands, which are put into the mainUsermenu list.
- Submenu commands, which are put into a new submenu with a specified
name that is added to the main menu. This allows for grouping of related
commands under a separate submenu in the main menu.
- NameList<char *> userKeys - in a manner very similar to adding
new menu items, the user can assocate keyboard shortcuts (or hotkeys)
with a specified text command. This list stores the keystrokes, and
the text commands associated with those keystrokes.
Next: Nonvirtual member functions
Up: Mouse
Previous: Enumerationslists or character
Justin Gullingsrud
Tue Apr 6 09:26:48 CDT 1999