The action with it's current name will appear in the hotkey
dialog, where users can change the hotkey for the action. When the
users press the hotkey, the OnActivate function will be called for
the object.
|
Public Types
|
enum |
Hotkeys {
keyAlt = 0x00010000,
keyShift
= 0x00020000, keyCtrl = 0x00040000,
keyMeta
= 0x00080000,
keyLMB = 0x00000100,
keyMMB =
0x00000200, keyRMB = 0x00000400,
keyWheel
= 0x00000800,
keyLeft = 0x01000012,
keyUp =
0x01000013, keyRight = 0x01000014,
keyDown
= 0x01000015
} |
Public Member Functions
|
virtual const mudbox::ClassDesc
* |
RuntimeClass (void) const |
|
Action (void) |
|
~Action (void) |
virtual int |
DefaultHotkey (void)
const |
|
This function should return the default
hotkey for the action, which can be a combination of more than one
values. For example: leyCtrl+'J'.
|
virtual bool |
IsSticky (void) const |
|
Returns true if the action is sticky, i.e.
can be activated independently from other actions.
|
virtual void |
OnActivate (bool bRepeat) |
|
This function is called when the action is
activated, i.e. when the user pressed the hotkey.
|
virtual void |
OnDeactivate (void) |
|
Called when the action is deactivated, i.e.
the user released the hotkey.
|
virtual void |
OnCursorMove (float
fXPosition, float fYPosition, float fXChange, float fYChange) |
|
Called when the cursor is moved by the user
while the action is active.
|
virtual void |
OnOptions (void) |
|
Called when the user requested to set
options for this action.
|
Static Public Member Functions
|
const mudbox::ClassDesc
* |
StaticClass (void) |
mudbox::Node
* |
CreateInstances (unsigned int
iCount=1) |
mudbox::Action mudbox::Action
mudbox::Action mudbox::Action mudbox::Action mudbox::Action
mudbox::Action mudbox::Action mudbox::Action mudbox::Action
mudbox::Action mudbox::Action
mudbox::Action mudbox::Action mudbox::Action mudbox::Action
mudbox::Action mudbox::Action mudbox::Action mudbox::Action