Commit 3ecad19e authored by Jason Rumney's avatar Jason Rumney

(enum event_kind): Added new WHEEL_EVENT event.

Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
parent 637ad49d
...@@ -240,14 +240,27 @@ enum event_kind ...@@ -240,14 +240,27 @@ enum event_kind
the mouse click occurred in. the mouse click occurred in.
.timestamp gives a timestamp (in .timestamp gives a timestamp (in
milliseconds) for the click. */ milliseconds) for the click. */
#if defined(WINDOWSNT) || defined(MAC_OSX) WHEEL_EVENT, /* A wheel event is generated by a
MOUSE_WHEEL_EVENT, /* A mouse-wheel event is generated wheel on a mouse (e.g., MS
on WINDOWSNT or MAC_OSX by a Intellimouse).
wheel on a mouse (e.g., MS Intellimouse). .modifiers holds the rotate
The event contains a delta that corresponds direction (up or down), and the
to the amount and direction that the wheel state of the modifier keys.
is rotated. This delta is typically .x and .y give the mouse position,
used to implement a scroll or zoom. in characters, within the window.
.frame_or_window gives the frame
the wheel event occurred in.
.timestamp gives a timestamp (in
milliseconds) for the event. */
#if defined(MAC_OSX)
MOUSE_WHEEL_EVENT, /* A mouse-wheel event is generated on
MAC_OSX by a wheel on a mouse
(e.g., MS Intellimouse). The event
contains a delta that corresponds
to the amount and direction that
the wheel is rotated. This delta
is typically used to implement a
scroll or zoom.
.code gives the delta. .code gives the delta.
.modifiers holds the state of the .modifiers holds the state of the
modifier keys. modifier keys.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment