diff options
| author | Pietro Gagliardi <[email protected]> | 2016-05-30 00:14:46 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2016-05-30 00:14:46 -0400 |
| commit | 52f7d276a6bb04b8827ac019ad1e135b43819cea (patch) | |
| tree | 5f0ebbfdf5885ef832e77e243b5916e59f46ba18 /prev/wintable/events.h | |
| parent | c9b32c1333e4009b342eedc5f5b39127a724fb42 (diff) | |
Removed prev/.
Diffstat (limited to 'prev/wintable/events.h')
| -rw-r--r-- | prev/wintable/events.h | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/prev/wintable/events.h b/prev/wintable/events.h deleted file mode 100644 index fbd1522..0000000 --- a/prev/wintable/events.h +++ /dev/null @@ -1,62 +0,0 @@ -// 5 december 2014 - -// TODO handler functions don't work here because you can't have more than one for the mouse ones... - -static const handlerfunc keyDownHandlers[] = { - keyDownSelectHandler, - NULL, -}; - -static const handlerfunc keyUpHandlers[] = { - NULL, -}; - -static const handlerfunc charHandlers[] = { - NULL, -}; - -static const handlerfunc mouseMoveHandlers[] = { - checkboxMouseMoveHandler, - NULL, -}; - -static const handlerfunc mouseLeaveHandlers[] = { - checkboxMouseLeaveHandler, - NULL, -}; - -static const handlerfunc lbuttonDownHandlers[] = { - mouseDownSelectHandler, - NULL, -}; - -static const handlerfunc lbuttonUpHandlers[] = { - checkboxMouseUpHandler, - NULL, -}; - -// TODO remove or something? depends on if we implement combobox and how -static const handlerfunc mouseWheelHandlers[] = { - NULL, -}; - -// TODO WM_MOUSEHOVER, other mouse buttons - -HANDLER(eventHandlers) -{ - switch (uMsg) { -#define eventHandler(msg, array) \ - case msg: \ - return runHandlers(array, t, uMsg, wParam, lParam, lResult); - eventHandler(WM_KEYDOWN, keyDownHandlers) - eventHandler(WM_KEYUP, keyUpHandlers) - eventHandler(WM_CHAR, charHandlers) - eventHandler(WM_MOUSEMOVE, mouseMoveHandlers) - eventHandler(WM_MOUSELEAVE, mouseLeaveHandlers) - eventHandler(WM_LBUTTONDOWN, lbuttonDownHandlers) - eventHandler(WM_LBUTTONUP, lbuttonUpHandlers) - eventHandler(WM_MOUSEWHEEL, mouseWheelHandlers) -#undef eventHandler - } - return FALSE; -} |
