aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2019-01-09 09:47:45 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2019-01-09 09:47:45 +0100
commita2379a6e6242d44fb0ddba28f58c6fa69f39f056 (patch)
tree6888e44bd8264bb33680805dbbccc6d494bec38c /example
parent12b8c5938e2454f5039298b4a94e7730c493ccfc (diff)
downloadd2tk-a2379a6e6242d44fb0ddba28f58c6fa69f39f056.tar.xz
base/fbdev: implement mouse cursor.
Diffstat (limited to 'example')
-rw-r--r--example/d2tk_fbdev.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/example/d2tk_fbdev.c b/example/d2tk_fbdev.c
index 723099f..1d36870 100644
--- a/example/d2tk_fbdev.c
+++ b/example/d2tk_fbdev.c
@@ -52,6 +52,12 @@ _expose(void *data, d2tk_coord_t w, d2tk_coord_t h)
d2tk_example_run(base, w, h);
+ d2tk_coord_t x = 0;
+ d2tk_coord_t y = 0;
+
+ d2tk_base_get_mouse_pos(base, &x, &y);
+ d2tk_base_cursor(base, &D2TK_RECT(x, y, 24, 24));
+
return EXIT_SUCCESS;
}