# Sandbox.UI.MousePanelEvent

Mouse related [Sandbox.UI.PanelEvent](/api/Sandbox.UI.PanelEvent).

- Kind: class
- Namespace: `Sandbox.UI`
- Assembly: `Sandbox.Engine`
- Inherits: [Sandbox.UI.PanelEvent](/api/Sandbox.UI.PanelEvent)

## Constructors

- [`MousePanelEvent`](/api/Sandbox.UI.MousePanelEvent/.ctor)

## Fields

- [`Button`](/api/Sandbox.UI.MousePanelEvent/Button): Which button triggered the event, in string form.
- [`LocalPosition`](/api/Sandbox.UI.MousePanelEvent/LocalPosition): Position of the cursor relative to the panel's top left corner at the time the event was triggered.

## Properties

- [`HasAlt`](/api/Sandbox.UI.MousePanelEvent/HasAlt): Whether `Alt` was held down at the time of the event.
- [`HasCtrl`](/api/Sandbox.UI.MousePanelEvent/HasCtrl): Whether `Control` was held down at the time of the event.
- [`HasShift`](/api/Sandbox.UI.MousePanelEvent/HasShift): Whether `Shift` was held down at the time of the event.
- [`KeyboardModifiers`](/api/Sandbox.UI.MousePanelEvent/KeyboardModifiers): The modifier keys held down when this happened - so a click can tell shift+click from a plain one.
- [`MouseButton`](/api/Sandbox.UI.MousePanelEvent/MouseButton): Which button triggered the event, as a [Sandbox.MouseButtons](/api/Sandbox.MouseButtons) enum.
