Skip to content

Crow.MouseButtonEventArgs

Jean-Philippe Bruyère edited this page Jan 30, 2018 · 2 revisions

Defines the event data for MouseDevice.ButtonDown and MouseDevice.ButtonUp events.

Do not cache instances of this type outside their event handler. If necessary, you can clone an instance using the MouseButtonEventArgs(MouseButtonEventArgs) constructor.

namespace: Crow

Inheritance Hierarchy

Syntax

public class MouseButtonEventArgs : MouseEventArgs

Constructors

prototype description
MouseButtonEventArgs () Constructs a new MouseButtonEventArgs instance.
MouseButtonEventArgs (int x, int y, MouseButton button, bool pressed) Constructs a new MouseButtonEventArgs instance.
MouseButtonEventArgs (MouseButton button) __
MouseButtonEventArgs (MouseButtonEventArgs args) Constructs a new MouseButtonEventArgs instance.

Properties

name description
Button Gets the MouseButton that triggered this event.
IsPressed Gets a System.Boolean representing the state of the mouse button for the event.

Methods

prototype description

Events

name description
Clone this wiki locally