From 59c972b40ab0bb7a072984c7f787784e0e0b1d9e Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 8 Mar 2022 13:58:45 +1100 Subject: Event System: remove unused NDOF buttons GHOST always converts NDOF keyboard buttons into keyboard events so there is no need to expose their values for Blender event types. --- source/blender/windowmanager/wm_event_types.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/blender/windowmanager/wm_event_types.h') diff --git a/source/blender/windowmanager/wm_event_types.h b/source/blender/windowmanager/wm_event_types.h index 5ced501dd49..0a0fdfa769a 100644 --- a/source/blender/windowmanager/wm_event_types.h +++ b/source/blender/windowmanager/wm_event_types.h @@ -275,11 +275,17 @@ enum { NDOF_BUTTON_DOMINANT = 0x01a3, /* 419 */ NDOF_BUTTON_PLUS = 0x01a4, /* 420 */ NDOF_BUTTON_MINUS = 0x01a5, /* 421 */ + +/* Disabled as GHOST converts these to keyboard events + * which use regular keyboard event handling logic. */ +#if 0 /* keyboard emulation */ NDOF_BUTTON_ESC = 0x01a6, /* 422 */ NDOF_BUTTON_ALT = 0x01a7, /* 423 */ NDOF_BUTTON_SHIFT = 0x01a8, /* 424 */ NDOF_BUTTON_CTRL = 0x01a9, /* 425 */ +#endif + /* general-purpose buttons */ NDOF_BUTTON_1 = 0x01aa, /* 426 */ NDOF_BUTTON_2 = 0x01ab, /* 427 */ -- cgit v1.2.3