7682 |
GetEventParameter(eventRef, kEventParamMouseLocation, |
GetEventParameter(eventRef, kEventParamMouseLocation, |
7683 |
typeQDPoint, NULL, sizeof (Point), |
typeQDPoint, NULL, sizeof (Point), |
7684 |
NULL, &point); |
NULL, &point); |
7685 |
bufp->kind = MOUSE_WHEEL_EVENT; |
bufp->kind = WHEEL_EVENT; |
7686 |
bufp->code = delta; |
bufp->code = 0; |
7687 |
bufp->modifiers = mac_event_to_emacs_modifiers(eventRef); |
bufp->modifiers = (mac_event_to_emacs_modifiers(eventRef) |
7688 |
|
| ((delta < 0) ? down_modifier |
7689 |
|
: up_modifier)); |
7690 |
SetPort (GetWindowPort (window_ptr)); |
SetPort (GetWindowPort (window_ptr)); |
7691 |
GlobalToLocal (&point); |
GlobalToLocal (&point); |
7692 |
XSETINT (bufp->x, point.h); |
XSETINT (bufp->x, point.h); |