diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-08-05 12:19:35 +0200 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2023-08-05 12:19:42 +0200 |
| commit | 3049e6394a3376f7fff1c8cde19fd7bb1a9252ec (patch) | |
| tree | e51ea3abc1232caac48edfc24e7e54fdf6495bcf /FL | |
| parent | 2953db58c75f30912bee6b91fd5ff087bbb8cad5 (diff) | |
#733 partial: Adds rotation gesture event on MacOS
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Enumerations.H | 8 | ||||
| -rw-r--r-- | FL/names.h | 5 |
2 files changed, 10 insertions, 3 deletions
diff --git a/FL/Enumerations.H b/FL/Enumerations.H index 914fc6a56..7c0d867be 100644 --- a/FL/Enumerations.H +++ b/FL/Enumerations.H @@ -407,7 +407,13 @@ enum Fl_Event { // events /** A zoom event (ctrl/+/-/0/ or cmd/+/-/0/) was processed. Use Fl::add_handler() to be notified of this event. */ - FL_ZOOM_EVENT = 27 + FL_ZOOM_EVENT = 27, + /** The user has made a rotation gesture (Mac OS platform only). + The Fl::event_dy() method can be used to find the rotation amount, + Fl::event_x() and Fl::event_y() are set as well. + This event is sent to the window's handle method. + */ + FL_ROTATE_GESTURE = 28 // DEV NOTE: Keep this list in sync with FL/names.h }; diff --git a/FL/names.h b/FL/names.h index 87bb5178e..f65444cdc 100644 --- a/FL/names.h +++ b/FL/names.h @@ -73,9 +73,10 @@ const char * const fl_eventnames[] = "FL_FULLSCREEN", "FL_ZOOM_GESTURE", "FL_ZOOM_EVENT", - "FL_EVENT_28", // not yet defined, just in case it /will/ be defined ... + "FL_ROTATE_GESTURE", "FL_EVENT_29", // not yet defined, just in case it /will/ be defined ... - "FL_EVENT_30" // not yet defined, just in case it /will/ be defined ... + "FL_EVENT_30", // not yet defined, just in case it /will/ be defined ... + "FL_EVENT_31" // not yet defined, just in case it /will/ be defined ... }; /** |
