From e4c5a46c1294eefd7464395bca9551b9ca866aea Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 19 Oct 2022 14:07:36 +1100 Subject: 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. --- source/blender/windowmanager/intern/wm_event_system.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/windowmanager/intern') 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(customdata); - event.type = NDOF_BUTTON_NONE + e->button; + event.type = NDOF_BUTTON_INDEX_AS_EVENT(e->button); switch (e->action) { case GHOST_kPress: -- cgit v1.2.3