summaryrefslogtreecommitdiff
path: root/src/shared/include
diff options
context:
space:
mode:
authorBenji Dial <benji6283@gmail.com>2021-03-03 22:43:17 -0500
committerBenji Dial <benji6283@gmail.com>2021-03-03 22:43:17 -0500
commit81df4702c424f91cca5570ab2554d1d4cbae534d (patch)
treeaa8704b2fdf7a4bd79d85f480dc9fd8f8db02547 /src/shared/include
parent43693f88c79467b741b3f899799082e791656d1b (diff)
downloadportland-os-81df4702c424f91cca5570ab2554d1d4cbae534d.tar.gz
64kiB kernel area, ps/2 mouse support, signed decimals in knob format
Diffstat (limited to 'src/shared/include')
-rw-r--r--src/shared/include/winact.h12
1 files changed, 11 insertions, 1 deletions
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__));