diff options
author | Campbell Barton <campbell@blender.org> | 2022-10-19 06:07:36 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-10-19 06:07:36 +0300 |
commit | e4c5a46c1294eefd7464395bca9551b9ca866aea (patch) | |
tree | 837f6be87ae4e500cfe9a1d83f94037b9e641fa8 /source/blender/windowmanager/intern | |
parent | c9f13788639790aba02acb3376dc505043dae175 (diff) |
Cleanup: remove NDOF_BUTTON_NONE from the range of usable buttons
This is used to represent unknown state, so there is no need to be
able to store it's pressed state.
Diffstat (limited to 'source/blender/windowmanager/intern')
-rw-r--r-- | source/blender/windowmanager/intern/wm_event_system.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.cc b/source/blender/windowmanager/intern/wm_event_system.cc index affe0bcf45a..181ec89cabd 100644 --- a/source/blender/windowmanager/intern/wm_event_system.cc +++ b/source/blender/windowmanager/intern/wm_event_system.cc @@ -5620,7 +5620,7 @@ void wm_event_add_ghostevent(wmWindowManager *wm, wmWindow *win, int type, void case GHOST_kEventNDOFButton: { GHOST_TEventNDOFButtonData *e = static_cast<GHOST_TEventNDOFButtonData *>(customdata); - event.type = NDOF_BUTTON_NONE + e->button; + event.type = NDOF_BUTTON_INDEX_AS_EVENT(e->button); switch (e->action) { case GHOST_kPress: |