Class GorgonMouseEventArgs
Mouse event arguments.
Inherited Members
Namespace: Gorgon.Input
Assembly: Gorgon.Input.dll
Syntax
public class GorgonMouseEventArgs : EventArgs
Constructors
| Edit this page View SourceGorgonMouseEventArgs(MouseButtons, MouseButtons, Point, int, Point, int, int, bool)
Initializes a new instance of the GorgonMouseEventArgs class.
Declaration
public GorgonMouseEventArgs(MouseButtons buttons, MouseButtons shiftButtons, Point position, int wheelPosition, Point relativePosition, int wheelDelta, int clickCount, bool isAbsolute)
Parameters
Type | Name | Description |
---|---|---|
MouseButtons | buttons | Buttons that are pressed during mouse event. |
MouseButtons | shiftButtons | Buttons that are held down during the mouse event. |
Point | position | Position of the mouse. |
int | wheelPosition | Position of the wheel. |
Point | relativePosition | Relative position of the mouse. |
int | wheelDelta | Relative position of the wheel. |
int | clickCount | Number of clicks in a timed period. |
bool | isAbsolute | true to use absolute positioning, false to use relative. |
Properties
| Edit this page View SourceButtons
Property to return the buttons that were held down during a GorgonRawMouse event.
Declaration
public MouseButtons Buttons { get; }
Property Value
Type | Description |
---|---|
MouseButtons |
ClickCount
Property to return the number of full clicks.
Declaration
public int ClickCount { get; }
Property Value
Type | Description |
---|---|
int |
DoubleClick
Property to return if a double click caused the event to trigger.
Declaration
public bool DoubleClick { get; }
Property Value
Type | Description |
---|---|
bool |
IsAbsolute
Property to return whether the mouse is using absolute coordinates, or relative.
Declaration
public bool IsAbsolute { get; }
Property Value
Type | Description |
---|---|
bool |
Position
Property to return the position of the mouse.
Declaration
public Point Position { get; }
Property Value
Type | Description |
---|---|
Point |
RelativePosition
Property to return the amount that the mouse has moved since the last GorgonRawMouse event.
Declaration
public Point RelativePosition { get; }
Property Value
Type | Description |
---|---|
Point |
ShiftButtons
Property to return the buttons that were being held down in conjunction with the Buttons during a GorgonRawMouse event.
Declaration
public MouseButtons ShiftButtons { get; }
Property Value
Type | Description |
---|---|
MouseButtons |
WheelDelta
Property to return the amount that the wheel has moved since the last GorgonRawMouse event.
Declaration
public int WheelDelta { get; }
Property Value
Type | Description |
---|---|
int |
Remarks
If this is no mouse wheel present, this value will return 0.
WheelPosition
Property to return the wheel position.
Declaration
public int WheelPosition { get; }
Property Value
Type | Description |
---|---|
int |
Remarks
If there is no mouse wheel present, this value will return 0.