Skip to content
SiteEmail

cohtml.InputSystem.MouseEvent

A class storing mouse input event.

Inherits from cohtml.InputSystem.PointerEvent, IMouseEventData, cohtml.InputSystem.InputEvent, cohtml.InputSystem.IViewSendable

Name
virtual override voidSend(CohtmlView view)
Sends the mouse event to a CohtmlView component.
MouseEventDataSetNativePosition(Vector2Int position)
Sets the X and Y coordinate of the events position.
Name
override EventTypePointerEventType
Returns the pointer event type.
MouseEventData.EventTypeType
The event type of this mouse event.
MouseEventData.MouseButtonButton
The button that the user interacted with for this mouse event.
floatWheelX
The X coordinate of the mouse scroll for this mouse event.
floatWheelY
The Y coordinate of the mouse scroll for this mouse event.
intDeltaX
The X coordinate of the difference between the current and previous event position.
intDeltaY
The Y coordinate of the difference between the current and previous event position.
EventModifiersStateModifiers
The key modifiers of this mouse event.
EventMouseModifiersStateMouseModifiers
The mouse key modifiers of this mouse event.

Public Types inherited from cohtml.InputSystem.PointerEvent

Name
enum classEventType { Up, Down, Move}
The type of the pointer event.

Public Functions inherited from cohtml.InputSystem.PointerEvent

Name
voidAddView(CohtmlView view, Vector2Int position)
Temporarily stores the CohtmlView component and the position where the event happened.
Vector2IntGetViewPosition(CohtmlView view)
Returns the position of the event that hit a CohtmlView.
voidRemoveView(CohtmlView view)
Removes the CohtmlView from the temporary collection of events that happened.
voidClearViews()
Clears the collection of CohtmlView components hit by this event.

Public Properties inherited from cohtml.InputSystem.PointerEvent

Name
Vector2IntPosition
The position of the pointer event.
intX
The X coordinate of the events position.
intY
The Y coordinate of the events position.

Public Functions inherited from cohtml.InputSystem.InputEvent

Name
voidDispose()
virtual override void Send(
CohtmlView view
)

Sends the mouse event to a CohtmlView component.

Parameters:

  • view The CohtmlView component to receive the event.

Reimplements: cohtml.InputSystem.InputEvent.Send

MouseEventData SetNativePosition(
Vector2Int position
)

Sets the X and Y coordinate of the events position.

Parameters:

  • position The event position in screen space coordinates.
override EventType PointerEventType;

Returns the pointer event type.

MouseEventData.EventType Type;

The event type of this mouse event.

MouseEventData.MouseButton Button;

The button that the user interacted with for this mouse event.

float WheelX;

The X coordinate of the mouse scroll for this mouse event.

float WheelY;

The Y coordinate of the mouse scroll for this mouse event.

int DeltaX;

The X coordinate of the difference between the current and previous event position.

int DeltaY;

The Y coordinate of the difference between the current and previous event position.

EventModifiersState Modifiers;

The key modifiers of this mouse event.

EventMouseModifiersState MouseModifiers;

The mouse key modifiers of this mouse event.