Cleanup: Move wm_event_system.c to C++

This allows the use of C++ data structures to simplify code and
improve performance.
This commit is contained in:
Hans Goudey 2022-06-05 16:47:42 +02:00
parent c4e11122c5
commit 545d469879
3 changed files with 375 additions and 363 deletions

View File

@ -39,7 +39,7 @@ set(SRC
intern/wm_dragdrop.c
intern/wm_draw.c
intern/wm_event_query.c
intern/wm_event_system.c
intern/wm_event_system.cc
intern/wm_files.c
intern/wm_files_link.c
intern/wm_gesture.c

View File

@ -616,6 +616,7 @@ typedef enum eWM_EventFlag {
*/
WM_EVENT_FORCE_DRAG_THRESHOLD = (1 << 2),
} eWM_EventFlag;
ENUM_OPERATORS(eWM_EventFlag, WM_EVENT_FORCE_DRAG_THRESHOLD);
typedef struct wmTabletData {
/** 0=EVT_TABLET_NONE, 1=EVT_TABLET_STYLUS, 2=EVT_TABLET_ERASER. */