From 81df4702c424f91cca5570ab2554d1d4cbae534d Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Wed, 3 Mar 2021 22:43:17 -0500 Subject: 64kiB kernel area, ps/2 mouse support, signed decimals in knob format --- src/shared/include/winact.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/shared') diff --git a/src/shared/include/winact.h b/src/shared/include/winact.h index bc18cb4..8b32d00 100644 --- a/src/shared/include/winact.h +++ b/src/shared/include/winact.h @@ -9,10 +9,20 @@ struct window_action { KEY_DOWN, KEY_UP, FOCUS_ENTER, - FOCUS_LEAVE + FOCUS_LEAVE, + MOUSE_DOWN, + MOUSE_UP } action_type; union { struct key_packet as_key; + struct { + //0, 0 is upper-left-most pixel not counting border + //packets are also sent for the border pixels, + // so this may be a negative value in those cases + int16_t y; + int16_t x; + enum mouse_button {LEFT, RIGHT, MIDDLE} which; + } as_mouse; }; } __attribute__ ((__packed__)); -- cgit v1.2.3