summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/console.h
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>1996-06-25 08:54:57 +0000
committersos <sos@FreeBSD.org>1996-06-25 08:54:57 +0000
commit860f339c7232c8702024ec047064a929d031fad9 (patch)
treedd12dfd5ac0541ec9f731ed617993c246946cbd3 /sys/i386/include/console.h
parentd289477c1ff270a17b871d260683b361ff39f066 (diff)
downloadFreeBSD-src-860f339c7232c8702024ec047064a929d031fad9.zip
FreeBSD-src-860f339c7232c8702024ec047064a929d031fad9.tar.gz
Change the way moused talk to syscons, now its only delivering mouseevents
via an ioctl (MOUSE_ACTION). Fixed a couple of bugs (destructive cursor, uncut, jitter). Now applications can use the mouse via the MOUSE_MODE ioctl, its possible to have a signal sent on mouseevents, makeing an event loop in the application take over mouseevents.
Diffstat (limited to 'sys/i386/include/console.h')
-rw-r--r--sys/i386/include/console.h29
1 files changed, 22 insertions, 7 deletions
diff --git a/sys/i386/include/console.h b/sys/i386/include/console.h
index 12efe4a..43b70f0 100644
--- a/sys/i386/include/console.h
+++ b/sys/i386/include/console.h
@@ -105,20 +105,35 @@ struct vt_mode {
short frsig; /* not implemented yet SOS */
};
+#define RIGHT_BUTTON 0x01
+#define MIDDLE_BUTTON 0x02
+#define LEFT_BUTTON 0x04
+
+struct mouse_data {
+ int x;
+ int y;
+ int buttons;
+};
+
+struct mouse_mode {
+ int mode;
+ int signal;
+};
+
#define MOUSE_SHOW 0x01
#define MOUSE_HIDE 0x02
#define MOUSE_MOVEABS 0x03
#define MOUSE_MOVEREL 0x04
-#define MOUSE_GETPOS 0x05
-#define MOUSE_CUT_START 0x06
-#define MOUSE_CUT_END 0x07
-#define MOUSE_CUT_RESET 0x08
-#define MOUSE_RETURN_CUTBUFFER 0x09
+#define MOUSE_GETINFO 0x05
+#define MOUSE_MODE 0x06
+#define MOUSE_ACTION 0x07
struct mouse_info {
int operation;
- int x;
- int y;
+ union {
+ struct mouse_data data;
+ struct mouse_mode mode;
+ }u;
};
#define KD_MONO 1 /* monochrome adapter */
OpenPOWER on IntegriCloud