Commit eb521cfa authored by Hanspeter Portner's avatar Hanspeter Portner

Squashed 'subprojects/d2tk/' changes from 21dd749..b145662

b145662 example: only render keyboard with libevdev.

git-subtree-dir: subprojects/d2tk
git-subtree-split: b145662de341c31ae517cf485e4dac861ee1b1a4
parent 4f07a373
......@@ -68,22 +68,22 @@ stages:
# building in docker
x86_64-linux-gnu:
before_script:
- apt-get install -y libglu1-mesa-dev libevdev-dev
- apt-get install -y libglu1-mesa-dev libevdev-dev libvterm-dev
<<: *universal_linux_definition
i686-linux-gnu:
before_script:
- apt-get install -y libglu1-mesa-dev:i386 libevdev-dev:i386
- apt-get install -y libglu1-mesa-dev:i386 libevdev-dev:i386 libvterm-dev:i386
<<: *universal_linux_definition
arm-linux-gnueabihf:
before_script:
- apt-get install -y libglu1-mesa-dev:armhf libevdev-dev:armhf
- apt-get install -y libglu1-mesa-dev:armhf libevdev-dev:armhf libvterm-dev:armhf
<<: *arm_linux_definition
aarch64-linux-gnu:
before_script:
- apt-get install -y libglu1-mesa-dev:arm64 libevdev-dev:arm64
- apt-get install -y libglu1-mesa-dev:arm64 libevdev-dev:arm64 libvterm-dev:arm64
<<: *arm_linux_definition
x86_64-w64-mingw32:
......
......@@ -70,6 +70,8 @@ typedef enum _bar_t {
#endif
#if !defined(_WIN32) && !defined(__APPLE__)
BAR_BROWSER,
#endif
#if D2TK_EVDEV
BAR_KEYBOARD,
#endif
......@@ -93,6 +95,8 @@ static const char *bar_lbl [BAR_MAX] = {
#endif
#if !defined(_WIN32) && !defined(__APPLE__)
[BAR_BROWSER] = "Browser",
#endif
#if D2TK_EVDEV
[BAR_KEYBOARD] = "Keyboard"
#endif
};
......@@ -1154,15 +1158,15 @@ _render_c_browser(d2tk_base_t *base, const d2tk_rect_t *rect)
_file_list_free(list);
#undef M
}
#endif
#if D2TK_EVDEV
static void
_fake_event(unsigned type, unsigned code, int value)
{
if(fake.uidev)
{
#if D2TK_EVDEV
libevdev_uinput_write_event(fake.uidev, type, code, value);
#endif
}
}
......@@ -1786,6 +1790,8 @@ d2tk_example_run(d2tk_base_t *base, d2tk_coord_t w, d2tk_coord_t h)
{
_render_c_browser(base, vrect);
} break;
#endif
#if D2TK_EVDEV
case BAR_KEYBOARD:
{
_render_c_keyboard(base, vrect);
......
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