diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-05-28 17:48:48 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-05-28 17:52:43 +0300 |
commit | e4ac8ab212769b569334d0cd15d4bf04f42cbc89 (patch) | |
tree | 62cc58acd12f6f1bf974ff810900fa231d918354 /intern/ghost/GHOST_Types.h | |
parent | a7ebb4b7d96b129d3ac1950ee415754b282bfbc4 (diff) |
WM: support X/Y axis cursor wrapping
Operator flags to wrap on a single axis.
D4865 by @Gvgeo with updates.
Resolves T64585
Diffstat (limited to 'intern/ghost/GHOST_Types.h')
-rw-r--r-- | intern/ghost/GHOST_Types.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/intern/ghost/GHOST_Types.h b/intern/ghost/GHOST_Types.h index f38154cbf94..68516c3ecf8 100644 --- a/intern/ghost/GHOST_Types.h +++ b/intern/ghost/GHOST_Types.h @@ -374,6 +374,13 @@ typedef enum { GHOST_kGrabHide, } GHOST_TGrabCursorMode; +typedef enum { + /** Axis that cursor grab will wrap. */ + GHOST_kGrabAxisNone = 0, + GHOST_kAxisX = (1 << 0), + GHOST_kGrabAxisY = (1 << 1), +} GHOST_TAxisFlag; + typedef void *GHOST_TEventDataPtr; typedef struct { |