From d9704d2790d366147edaab5fb5ace43ebaa6e3f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Boh=C3=A1=C4=8Dek?= Date: Sun, 20 Jun 2021 21:17:51 +0200 Subject: [PATCH] feat: add keyboard and rotation encoders constants --- text-viewer/include/keyboard_const.h | 4 ++++ text-viewer/include/rotation_const.h | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 text-viewer/include/keyboard_const.h create mode 100644 text-viewer/include/rotation_const.h diff --git a/text-viewer/include/keyboard_const.h b/text-viewer/include/keyboard_const.h new file mode 100644 index 0000000..5f90490 --- /dev/null +++ b/text-viewer/include/keyboard_const.h @@ -0,0 +1,4 @@ +#define KEYBOARD_LEFT 'h' +#define KEYBOARD_RIGHT 'l' +#define KEYBOARD_DOWN 'j' +#define KEYBOARD_UP 'k' diff --git a/text-viewer/include/rotation_const.h b/text-viewer/include/rotation_const.h new file mode 100644 index 0000000..8235a22 --- /dev/null +++ b/text-viewer/include/rotation_const.h @@ -0,0 +1,3 @@ +#define ROTATION_ENCODER_HORIZONTAL 0 +#define ROTATION_ENCODER_VERTICAL 1 +#define ROTATION_ENCODER_ZOOM 2 -- 2.48.1