-
Notifications
You must be signed in to change notification settings - Fork 0
InputEventMouse
Namespace: Electron2D
Base class for mouse input events.
public class Electron2D.InputEventMouse : Electron2D.InputEventWithModifiersMouse events carry viewport-local and global positions. In the 0.1.0 Preview baseline these positions are identical because viewport scaling and GUI local coordinates are not yet part of the input pipeline.
Instances are mutable and are not synchronized; use them from the input dispatch thread that owns the event.
Instances of this type are not synchronized. Access them from the thread that owns the object unless the member documentation states otherwise.
This class is available since Electron2D 0.1.0 Preview.
| Member | Kind | Summary |
|---|---|---|
ButtonMask |
Property | Gets or sets the button mask active when the mouse event was generated. |
GlobalPosition |
Property | Gets or sets the event position in the root viewport. |
Position |
Property | Gets or sets the event position in the current viewport. |
Electron2D.InputEventMouse() |
Constructor | Initializes a new instance of the Electron2D.InputEventMouse class. |
Kind: Property
public Electron2D.MouseButtonMask ButtonMask { get; set; }Gets or sets the button mask active when the mouse event was generated.
This property follows the validation and lifetime rules of its declaring type.
The current button mask value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.InputEventMouse
Kind: Property
public Electron2D.Vector2 GlobalPosition { get; set; }Gets or sets the event position in the root viewport.
This property follows the validation and lifetime rules of its declaring type.
The current global position value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.InputEventMouse
Kind: Property
public Electron2D.Vector2 Position { get; set; }Gets or sets the event position in the current viewport.
This property follows the validation and lifetime rules of its declaring type.
The current position value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.InputEventMouse
Kind: Constructor
public Electron2D.InputEventMouse()Initializes a new instance of the Electron2D.InputEventMouse class.
The new instance follows the lifetime and validation rules of its declaring type.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.InputEventMouse
Electron2D 0.1.0 Preview API reference. Generated from 175 public runtime types.