diff options
Diffstat (limited to 'source/blender/windowmanager/WM_api.h')
-rw-r--r-- | source/blender/windowmanager/WM_api.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/source/blender/windowmanager/WM_api.h b/source/blender/windowmanager/WM_api.h index 0520532fb0e..77b1f9781df 100644 --- a/source/blender/windowmanager/WM_api.h +++ b/source/blender/windowmanager/WM_api.h @@ -58,6 +58,7 @@ struct wmDrag; struct wmDropBox; struct wmEvent; struct wmEventHandler; +struct wmEventHandler_Keymap; struct wmGesture; struct wmJob; struct wmMsgSubscribeKey; @@ -187,16 +188,19 @@ int WM_userdef_event_type_from_keymap_type(int kmitype); /* handlers */ -struct wmEventHandler *WM_event_add_keymap_handler(ListBase *handlers, wmKeyMap *keymap); - /* boundbox, optional subwindow boundbox for offset */ -struct wmEventHandler *WM_event_add_keymap_handler_bb(ListBase *handlers, wmKeyMap *keymap, const rcti *bb, const rcti *swinbb); - /* priority not implemented, it adds in begin */ -struct wmEventHandler *WM_event_add_keymap_handler_priority(ListBase *handlers, wmKeyMap *keymap, int priority); +struct wmEventHandler_Keymap *WM_event_add_keymap_handler( + ListBase *handlers, wmKeyMap *keymap); +/* boundbox, optional subwindow boundbox for offset */ +struct wmEventHandler_Keymap *WM_event_add_keymap_handler_bb( + ListBase *handlers, wmKeyMap *keymap, const rcti *bb, const rcti *swinbb); +/* priority not implemented, it adds in begin */ +struct wmEventHandler_Keymap *WM_event_add_keymap_handler_priority( + ListBase *handlers, wmKeyMap *keymap, int priority); void WM_event_remove_keymap_handler(ListBase *handlers, wmKeyMap *keymap); void WM_event_set_keymap_handler_callback( - struct wmEventHandler *handler, + struct wmEventHandler_Keymap *handler, void (keymap_tag)(wmKeyMap *keymap, wmKeyMapItem *kmi, void *user_data), void *user_data); |