diff options
author | Yevgeny Makarov <jenkm> | 2020-11-09 14:26:53 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2020-11-09 15:51:08 +0300 |
commit | 055ed335a111bebed7193acd083f54d5c82929ff (patch) | |
tree | 2d36a6ea151c60eb53cd2a7dfb4a398df0b2f8d9 /source/blender/windowmanager/WM_api.h | |
parent | 0c4d12986a746b644c177224e4f70edec1f50d7a (diff) |
macOS: follow system preference for natural trackpad scroll direction
And remove Blender preference, which was expected to be set to match the system
preference for correct behavior. Instead just handle this automatically.
Differential Revision: https://developer.blender.org/D9402
Diffstat (limited to 'source/blender/windowmanager/WM_api.h')
-rw-r--r-- | source/blender/windowmanager/WM_api.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/windowmanager/WM_api.h b/source/blender/windowmanager/WM_api.h index b81ef14f21c..fd0b99fb9ae 100644 --- a/source/blender/windowmanager/WM_api.h +++ b/source/blender/windowmanager/WM_api.h @@ -857,6 +857,9 @@ void WM_event_ndof_to_quat(const struct wmNDOFMotionData *ndof, float q[4]); float WM_event_tablet_data(const struct wmEvent *event, int *pen_flip, float tilt[2]); bool WM_event_is_tablet(const struct wmEvent *event); +int WM_event_absolute_delta_x(const struct wmEvent *event); +int WM_event_absolute_delta_y(const struct wmEvent *event); + #ifdef WITH_INPUT_IME bool WM_event_is_ime_switch(const struct wmEvent *event); #endif |