Struct MouseButtonEvent
Contains information about a mouse button event. This is emitted when a button is pressed or released.
public struct MouseButtonEvent : IWindowEvent
- Implements
- Inherited Members
Constructors
MouseButtonEvent(WindowEventType, MouseButton)
Create a new MouseButtonEvent.
public MouseButtonEvent(WindowEventType eventType, MouseButton button)
Parameters
eventType
WindowEventTypeThe mouse button event type.
button
MouseButtonThe button that has been pressed or released.
Fields
Button
The button that has been pressed or released.
public readonly MouseButton Button
Field Value
- MouseButton
- Contains information about a mouse button event. This is emitted when a button is pressed or released.
Properties
EventType
The WindowEventType of this event.
public readonly WindowEventType EventType { get; }
Property Value
- WindowEventType
- Contains information about a mouse button event. This is emitted when a button is pressed or released.