From d274c64d22da51473839d87618ba0dc0a0f1fa42 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 7 Jun 2018 17:05:49 +0200 Subject: WM: add support for drag events This allows for a single key to be mapped to both release and drag, useful for pie menus to share a key with a different action. --- source/blender/windowmanager/WM_types.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/windowmanager/WM_types.h') diff --git a/source/blender/windowmanager/WM_types.h b/source/blender/windowmanager/WM_types.h index 298c5184ced..8c53f5389e3 100644 --- a/source/blender/windowmanager/WM_types.h +++ b/source/blender/windowmanager/WM_types.h @@ -188,6 +188,7 @@ enum { #define KM_RELEASE 2 #define KM_CLICK 3 #define KM_DBL_CLICK 4 +#define KM_CLICK_DRAG 5 /* ************** UI Handler ***************** */ @@ -462,6 +463,7 @@ typedef struct wmEvent { /* set in case a KM_PRESS went by unhandled */ char check_click; + char check_drag; char is_motion_absolute; /* keymap item, set by handler (weak?) */ -- cgit v1.2.3