MouseEvent
Represents the event args for a mouse event.
Gets which button has been pressed.
Gets the currently pressed buttons.
Gets the client X coordinates.
Gets the client Y coordinates.
Gets if the alt key is pressed.
Gets if the control key is pressed.
Gets if the meta key is pressed.
Gets if the shift key is pressed.
Gets the screen X coordinates.
Gets the screen Y coordinates.
Gets the target of the mouse event.
public MouseEvent()
Creates a new event.
public MouseEvent(string type, bool bubbles = false, bool cancelable = false, IWindow view = null, int detail = 0, int screenX = 0, int screenY = 0, int clientX = 0, int clientY = 0, bool ctrlKey = false, bool altKey = false, bool shiftKey = false, bool metaKey = false, MouseButton button = 0, IEventTarget relatedTarget = null)
Creates a new event and initializes it.
Returns the current state of the specified modifier key.
public void Init(string type, bool bubbles, bool cancelable, IWindow view, int detail, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, MouseButton button, IEventTarget target)
Initializes the mouse event.