
11.1 SelectRingContextl Plug-in 5
81
Whenever any mouse button is pressed, the
doPress
function is called. The
event
variable contains information about which button is pressed, as well as which modi-
fier keys may also have been pressed.
MStatus SelectRingContextl'.doPress( MEvent &event )
{
This context follows the standard selection conventions that Maya has established.
When the user clicks on an item without any modifier keys, the current selection is
replaced. When the user clicks with the Shift key pressed, the selection is toggled with
the current selection. When the user clicks with the Ctrl key pressed, ...