buttonState(_:button:)
Returns a Boolean value indicating the current button state of a Quartz event source.
Declaration
class func buttonState(_ stateID: CGEventSourceStateID, button: CGMouseButton) -> BoolParameters
- stateID:
The source state to access. Pass one of the constants listed in Cgeventsourcestateid.
- button:
The mouse button to test. Pass one of the constants listed in Cgmousebutton.
Return Value
If true, the button is down. If false, the button is up.
See Also
Functions
CGAcquireDisplayFadeReservation(_:_:)CGAssociateMouseAndMouseCursorPosition(_:)CGBeginDisplayConfiguration(_:)CGCancelDisplayConfiguration(_:)CGCaptureAllDisplays()CGCaptureAllDisplaysWithOptions(_:)CGCompleteDisplayConfiguration(_:_:)CGConfigureDisplayFadeEffect(_:_:_:_:_:_:)CGConfigureDisplayMirrorOfDisplay(_:_:_:)CGConfigureDisplayMode(_:_:_:)CGConfigureDisplayOrigin(_:_:_:_:)CGConfigureDisplayStereoOperation(_:_:_:_:)CGConfigureDisplayWithDisplayMode(_:_:_:_:)CGCursorIsDrawnInFramebuffer()CGCursorIsVisible()