diff options
author | Jason Rumney <jasonr@gnu.org> | 2003-06-01 21:39:26 +0000 |
---|---|---|
committer | Jason Rumney <jasonr@gnu.org> | 2003-06-01 21:39:26 +0000 |
commit | 3ecad19e403a7bdbb15f1af31913378192018faf (patch) | |
tree | d7c2f7130c36b10676b019e2a8174f5b733ceaff | |
parent | 637ad49d45388b4b7e87be14619a247365a0e5b8 (diff) | |
download | emacs-3ecad19e403a7bdbb15f1af31913378192018faf.tar.gz |
(enum event_kind): Added new WHEEL_EVENT event.
Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
-rw-r--r-- | src/termhooks.h | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/src/termhooks.h b/src/termhooks.h index 5a5dc7cdaf7..e2e515707d1 100644 --- a/src/termhooks.h +++ b/src/termhooks.h @@ -240,14 +240,27 @@ enum event_kind the mouse click occurred in. .timestamp gives a timestamp (in milliseconds) for the click. */ -#if defined(WINDOWSNT) || defined(MAC_OSX) - MOUSE_WHEEL_EVENT, /* A mouse-wheel event is generated - on WINDOWSNT or 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. + WHEEL_EVENT, /* A wheel event is generated by a + wheel on a mouse (e.g., MS + Intellimouse). + .modifiers holds the rotate + direction (up or down), and the + state of the modifier keys. + .x and .y give the mouse position, + 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. .modifiers holds the state of the modifier keys. |