# IMouseEvent

> Interface for mouse events.

## Definition

* **Type:** Interface
* **Namespace:** [UnityEngine.UIElements](/engine/6000.3/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public interface IMouseEvent
```

## Remarks

Refer to the [Mouse events](/engine/6000.3/manual/uitoolkits/uielements/uie-events/reference/uie-mouse-events.md) manual page for more information and examples.

## Properties

| Property                                                                                                       | Description                                                                                                                                                                                                                                           |
| -------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [actionKey](/engine/6000.3/script-reference/unityengine/uielements/imouseevent/actionkey.md)                   | Returns true if the platform-specific action key is pressed.                                                                                                                                                                                          |
| [altKey](/engine/6000.3/script-reference/unityengine/uielements/imouseevent/altkey.md)                         | Return true if the Alt key is pressed.                                                                                                                                                                                                                |
| [button](/engine/6000.3/script-reference/unityengine/uielements/imouseevent/button.md)                         | A value that indicates which mouse button was pressed or released (if any) to cause this event: 0 is the left button, 1 is the right button, 2 is the middle button. A negative value indicates that no mouse button changed state during this event. |
| [clickCount](/engine/6000.3/script-reference/unityengine/uielements/imouseevent/clickcount.md)                 | The number of times a button is pressed consecutively.                                                                                                                                                                                                |
| [commandKey](/engine/6000.3/script-reference/unityengine/uielements/imouseevent/commandkey.md)                 | Return true if the Windows/Command key is pressed.                                                                                                                                                                                                    |
| [ctrlKey](/engine/6000.3/script-reference/unityengine/uielements/imouseevent/ctrlkey.md)                       | Return true if the Ctrl key is pressed.                                                                                                                                                                                                               |
| [localMousePosition](/engine/6000.3/script-reference/unityengine/uielements/imouseevent/localmouseposition.md) | The mouse position in the current target coordinate system.                                                                                                                                                                                           |
| [modifiers](/engine/6000.3/script-reference/unityengine/uielements/imouseevent/modifiers.md)                   | Flag set holding the pressed modifier keys (Alt, Ctrl, Shift, Windows/Command).                                                                                                                                                                       |
| [mouseDelta](/engine/6000.3/script-reference/unityengine/uielements/imouseevent/mousedelta.md)                 | Gets the difference between the mouse's position during the previous mouse event and its position during the current mouse event.                                                                                                                     |
| [mousePosition](/engine/6000.3/script-reference/unityengine/uielements/imouseevent/mouseposition.md)           | The mouse position in the panel coordinate system.                                                                                                                                                                                                    |
| [pressedButtons](/engine/6000.3/script-reference/unityengine/uielements/imouseevent/pressedbuttons.md)         | A bitmask that describes the currently pressed buttons.                                                                                                                                                                                               |
| [shiftKey](/engine/6000.3/script-reference/unityengine/uielements/imouseevent/shiftkey.md)                     | Return true if the Shift key is pressed.                                                                                                                                                                                                              |
