From bce944d1498eaa3b6940ee234c863b3548a66b37 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Sun, 24 Jan 2021 12:00:11 -0500 Subject: graphics! --- src/shared/include/winact.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/shared/include/winact.h (limited to 'src/shared/include/winact.h') diff --git a/src/shared/include/winact.h b/src/shared/include/winact.h new file mode 100644 index 0000000..bc18cb4 --- /dev/null +++ b/src/shared/include/winact.h @@ -0,0 +1,19 @@ +#ifndef SHARED_WINACT_H +#define SHARED_WINACT_H + +#include + +struct window_action { + enum { + NOT_READY, + KEY_DOWN, + KEY_UP, + FOCUS_ENTER, + FOCUS_LEAVE + } action_type; + union { + struct key_packet as_key; + }; +} __attribute__ ((__packed__)); + +#endif \ No newline at end of file -- cgit v1.2.3