Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-10-27 20:53:44 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-10-27 20:59:35 +0300
commitdd904f67614b51c3ade54d07f273944b5abab5b9 (patch)
tree122fdc5889a5859f0363848cc0b6bc642e8afd73 /source/blender/windowmanager/WM_api.h
parentae55523013642f2897e840f30ad62c74d31df3e0 (diff)
WM: add utility to lookup a keymap item from an event
Useful for modal operators to be able to match events against regular keymaps.
Diffstat (limited to 'source/blender/windowmanager/WM_api.h')
-rw-r--r--source/blender/windowmanager/WM_api.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/windowmanager/WM_api.h b/source/blender/windowmanager/WM_api.h
index f8b6b5171da..f7abfaf565e 100644
--- a/source/blender/windowmanager/WM_api.h
+++ b/source/blender/windowmanager/WM_api.h
@@ -243,6 +243,10 @@ void WM_event_set_keymap_handler_post_callback(struct wmEventHandler_Keymap *han
wmKeyMap *WM_event_get_keymap_from_handler(wmWindowManager *wm,
struct wmEventHandler_Keymap *handler);
+wmKeyMapItem *WM_event_match_keymap_item(struct bContext *C,
+ wmKeyMap *keymap,
+ const struct wmEvent *event);
+
typedef int (*wmUIHandlerFunc)(struct bContext *C, const struct wmEvent *event, void *userdata);
typedef void (*wmUIHandlerRemoveFunc)(struct bContext *C, void *userdata);