summaryrefslogtreecommitdiff
path: root/examples/tablet.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tablet.c')
-rw-r--r--examples/tablet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/tablet.c b/examples/tablet.c
index 4d7a8bd..0aae370 100644
--- a/examples/tablet.c
+++ b/examples/tablet.c
@@ -148,8 +148,8 @@ static void input(struct app *app, const struct yasl_input_event *event)
(event->kind == YASL_INPUT_FOCUS && !event->focus.focused)) {
cancel_stroke(app);
} else if (event->kind == YASL_INPUT_KEY && event->key.action == YASL_KEY_PRESS) {
- if (event->key.key == 0xff1b) app->running = false;
- if (event->key.key == 'c' || event->key.key == 'C' || event->key.key == ' ')
+ if (event->key.key == YASL_KEY_ESCAPE) app->running = false;
+ if (event->key.key == YASL_KEY_C || event->key.key == YASL_KEY_SPACE)
clear_canvas(app);
} else if (event->kind == YASL_INPUT_MOUSE) {
const struct yasl_mouse_event *pointer = &event->mouse;