---
title: mouseDownFlags
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nscell/mousedownflags
---

# mouseDownFlags

The modifier flags for the last (left) mouse-down event.

## Declaration

```swift
var mouseDownFlags: Int { get }
```

## Discussion

Discussion The value of this property is the value of the modifier flags from the most recent NSEvent object representing a mouse-down event. If tracking has not yet occurred or the event contained no modifier keys, the value of this property is 0.

## See Also

### Related Documentation

- [modifierFlags](appkit/nsevent/modifierflags-swift.property.md)

### Tracking the Mouse

- [trackMouse(with:in:of:untilMouseUp:)](appkit/nscell/trackmouse(with:in:of:untilmouseup:).md)
- [startTracking(at:in:)](appkit/nscell/starttracking(at:in:).md)
- [continueTracking(last:current:in:)](appkit/nscell/continuetracking(last:current:in:).md)
- [stopTracking(last:current:in:mouseIsUp:)](appkit/nscell/stoptracking(last:current:in:mouseisup:).md)
- [prefersTrackingUntilMouseUp](appkit/nscell/preferstrackinguntilmouseup.md)
- [getPeriodicDelay(_:interval:)](appkit/nscell/getperiodicdelay(_:interval:).md)
