Commit 5c7479fb authored by Hanspeter Portner's avatar Hanspeter Portner

Squashed 'subprojects/d2tk/' changes from e7d28dd..6dc8b13

6dc8b13 meson: add define for libinput >= 1.15.0.

git-subtree-dir: subprojects/d2tk
git-subtree-split: 6dc8b138837f6217d898c2d3a4be1b341cb24889
parent 61707393
#define D2TK_PTY @[email protected]
#define D2TK_EVDEV @[email protected]
#define D2TK_INPUT_1_15 @[email protected]
......@@ -105,6 +105,11 @@ else
conf_data.set('D2TK_EVDEV', 0)
endif
if input_dep.found() and input_dep.version().version_compare('>=1.15.0')
conf_data.set('D2TK_INPUT_1_15', 1)
else
conf_data.set('D2TK_INPUT_1_15', 0)
endif
bin_srcs = [
join_paths('example', 'example.c')
......
......@@ -574,6 +574,9 @@ d2tk_fbdev_step(d2tk_fbdev_t *fbdev)
case LIBINPUT_EVENT_TABLET_PAD_BUTTON:
case LIBINPUT_EVENT_TABLET_PAD_RING:
case LIBINPUT_EVENT_TABLET_PAD_STRIP:
#if D2TK_INPUT_1_15
case LIBINPUT_EVENT_TABLET_PAD_KEY:
#endif
{
struct libinput_event_tablet_pad *evtp =
libinput_event_get_tablet_pad_event(ev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment