diff options
| author | Jason Rumney | 2003-06-01 21:39:26 +0000 |
|---|---|---|
| committer | Jason Rumney | 2003-06-01 21:39:26 +0000 |
| commit | 3ecad19e403a7bdbb15f1af31913378192018faf (patch) | |
| tree | d7c2f7130c36b10676b019e2a8174f5b733ceaff /src | |
| parent | 637ad49d45388b4b7e87be14619a247365a0e5b8 (diff) | |
| download | emacs-3ecad19e403a7bdbb15f1af31913378192018faf.tar.gz emacs-3ecad19e403a7bdbb15f1af31913378192018faf.zip | |
(enum event_kind): Added new WHEEL_EVENT event.
Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
Diffstat (limited to 'src')
| -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 | |||
| 240 | the mouse click occurred in. | 240 | the mouse click occurred in. |
| 241 | .timestamp gives a timestamp (in | 241 | .timestamp gives a timestamp (in |
| 242 | milliseconds) for the click. */ | 242 | milliseconds) for the click. */ |
| 243 | #if defined(WINDOWSNT) || defined(MAC_OSX) | 243 | WHEEL_EVENT, /* A wheel event is generated by a |
| 244 | MOUSE_WHEEL_EVENT, /* A mouse-wheel event is generated | 244 | wheel on a mouse (e.g., MS |
| 245 | on WINDOWSNT or MAC_OSX by a | 245 | Intellimouse). |
| 246 | wheel on a mouse (e.g., MS Intellimouse). | 246 | .modifiers holds the rotate |
| 247 | The event contains a delta that corresponds | 247 | direction (up or down), and the |
| 248 | to the amount and direction that the wheel | 248 | state of the modifier keys. |
| 249 | is rotated. This delta is typically | 249 | .x and .y give the mouse position, |
| 250 | used to implement a scroll or zoom. | 250 | in characters, within the window. |
| 251 | .frame_or_window gives the frame | ||
| 252 | the wheel event occurred in. | ||
| 253 | .timestamp gives a timestamp (in | ||
| 254 | milliseconds) for the event. */ | ||
| 255 | #if defined(MAC_OSX) | ||
| 256 | MOUSE_WHEEL_EVENT, /* A mouse-wheel event is generated on | ||
| 257 | MAC_OSX by a wheel on a mouse | ||
| 258 | (e.g., MS Intellimouse). The event | ||
| 259 | contains a delta that corresponds | ||
| 260 | to the amount and direction that | ||
| 261 | the wheel is rotated. This delta | ||
| 262 | is typically used to implement a | ||
| 263 | scroll or zoom. | ||
| 251 | .code gives the delta. | 264 | .code gives the delta. |
| 252 | .modifiers holds the state of the | 265 | .modifiers holds the state of the |
| 253 | modifier keys. | 266 | modifier keys. |