-
-
Notifications
You must be signed in to change notification settings - Fork 290
Nodify_Interactivity_MouseGesture
Namespace: Nodify.Interactivity
Assembly: Nodify
Inheritance: Object → InputGesture → MouseGesture → MouseGesture
Represents a mouse gesture that optionally includes a specific key press as part of the gesture.
public sealed class MouseGesture : MouseGesture Initializes a new instance of the MouseGesture class with the specified mouse action, modifier keys, and a specific key.
public MouseGesture(MouseAction action, ModifierKeys modifiers, Key key); Parameters
action MouseAction: The action associated with this gesture.
modifiers ModifierKeys: The modifiers associated with this gesture.
key Key: The key required to match the gesture.
Initializes a new instance of the MouseGesture class with the specified mouse action and key.
public MouseGesture(MouseAction action, Key key); Parameters
action MouseAction: The action associated with this gesture.
key Key: The key required to match the gesture.
Initializes a new instance of the MouseGesture class with the specified mouse action and modifier keys.
public MouseGesture(MouseAction action, ModifierKeys modifiers); Parameters
action MouseAction: The action associated with this gesture.
modifiers ModifierKeys: The modifiers required to match the gesture.
public MouseGesture(MouseAction action, ModifierKeys modifiers, bool ignoreModifierKeysOnRelease); Parameters
action MouseAction
modifiers ModifierKeys
ignoreModifierKeysOnRelease Boolean
public MouseGesture(MouseAction action); Parameters
action MouseAction
public MouseGesture(); Whether to ignore modifier keys when releasing the mouse button.
public bool IgnoreModifierKeysOnRelease { get; set; } Property Value
Gets or sets the key that must be pressed to match this gesture.
public Key Key { get; set; } Property Value
public override bool Matches(object targetElement, InputEventArgs inputEventArgs); Parameters
targetElement Object
inputEventArgs InputEventArgs
Returns