O'Reilly logo

Learning Carbon by Apple Computer Inc

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Mouse Events

Mouse events are generated when the user manipulates the mouse (moving, clicking, dragging, and so on).

Table C-5. Parameter Names and Types for Mouse Event Kinds

Event kindParameter nameParameter type
kEventMouseDown kEventParamMouseLocation typeQDPoint
  kEventParamKeyModifiers typeUInt32
  kEventParamMouseButton typeMouseButton
  kEventParamClickCount typeUInt32
kEventMouseUp kEventParamMouseLocation typeQDPoint
  kEventParamKeyModifiers typeUInt32
  kEventParamMouseButton typeMouseButton
  kEventParamClickCount typeUInt32
kEventMouseMoved kEventParamMouseLocation typeQDPoint
  kEventParamKeyModifiers typeUInt32
kEventMouseDragged kEventParamMouseLocation typeQDPoint
  kEventParamKeyModifiers typeUInt32
  kEventParamMouseButton typeMouseButton
kEventMouseWheelMoved kEventParamMouseLocation typeQDPoint
  kEventParamKeyModifiers typeUInt32
  kEventParamMouseWheelAxis typeMouseWheelAxis
  kEventParamMouseWheelDelta typeLongInteger

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required