summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorahasty <ahasty@FreeBSD.org>1998-06-14 20:05:27 +0000
committerahasty <ahasty@FreeBSD.org>1998-06-14 20:05:27 +0000
commita75c402e98f5929ad6951b05b2999a6ada735c48 (patch)
treeab232ffbbbf08dd58d1230991c79bea717bf1004 /sys
parentfb17974b6ab3add5c5025fe53469a7ca749f4794 (diff)
downloadFreeBSD-src-a75c402e98f5929ad6951b05b2999a6ada735c48.zip
FreeBSD-src-a75c402e98f5929ad6951b05b2999a6ada735c48.tar.gz
Reviewed by: Amancio
Submitted by: Randall Hopper <rhh@ct.picker.com> The patch supports using the X10 Mouse Remote in both stand-alone and pass-through configurations, so you can plug your mouse and remote into the same serial port, use the mouse for X, and use the remote for other apps like Fxtv. For instance, we can now control fxtv via the remote control just like a TV : change channels, mute, increase volume, zoom video, freeze frame 8) The mouse events are channeled through the syscons/sysmouse I/F like normal, and the remote buttons are "syphoned off" to a UNIX-domain stream socket (defined as _PATH_MOUSEREMOTE in <machine/mouse.h>) for a remote-aware app to grab and use. For further info on the X10 Mouse Remote see: http://www.x10.com/products/x10_mk19a.htm
Diffstat (limited to 'sys')
-rw-r--r--sys/alpha/include/mouse.h6
-rw-r--r--sys/i386/include/mouse.h6
-rw-r--r--sys/sys/mouse.h6
3 files changed, 15 insertions, 3 deletions
diff --git a/sys/alpha/include/mouse.h b/sys/alpha/include/mouse.h
index d0eecef..27ec8e1 100644
--- a/sys/alpha/include/mouse.h
+++ b/sys/alpha/include/mouse.h
@@ -20,7 +20,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: mouse.h,v 1.8 1997/10/19 10:44:02 yokota Exp $
+ * $Id: mouse.h,v 1.9 1997/12/07 08:08:50 yokota Exp $
*/
#ifndef _MACHINE_MOUSE_H_
@@ -139,6 +139,7 @@ typedef struct mousemode {
#define MOUSE_PROTO_INTELLI 10 /* MS IntelliMouse, 4 bytes */
#define MOUSE_PROTO_THINK 11 /* Kensignton Thinking Mouse, 3/4 bytes */
#define MOUSE_PROTO_SYSMOUSE 12 /* /dev/sysmouse */
+#define MOUSE_PROTO_X10MOUSEREM 13 /* X10 MouseRemote, 3 bytes */
#define MOUSE_RES_UNKNOWN (-1)
#define MOUSE_RES_DEFAULT 0
@@ -257,4 +258,7 @@ typedef struct mousevar {
#define MOUSE_SYS_STDBUTTONS 0x07
#define MOUSE_SYS_EXTBUTTONS 0x7f /* the others */
+/* Mouse remote socket */
+#define _PATH_MOUSEREMOTE "/var/run/MouseRemote"
+
#endif /* _MACHINE_MOUSE_H_ */
diff --git a/sys/i386/include/mouse.h b/sys/i386/include/mouse.h
index d0eecef..27ec8e1 100644
--- a/sys/i386/include/mouse.h
+++ b/sys/i386/include/mouse.h
@@ -20,7 +20,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: mouse.h,v 1.8 1997/10/19 10:44:02 yokota Exp $
+ * $Id: mouse.h,v 1.9 1997/12/07 08:08:50 yokota Exp $
*/
#ifndef _MACHINE_MOUSE_H_
@@ -139,6 +139,7 @@ typedef struct mousemode {
#define MOUSE_PROTO_INTELLI 10 /* MS IntelliMouse, 4 bytes */
#define MOUSE_PROTO_THINK 11 /* Kensignton Thinking Mouse, 3/4 bytes */
#define MOUSE_PROTO_SYSMOUSE 12 /* /dev/sysmouse */
+#define MOUSE_PROTO_X10MOUSEREM 13 /* X10 MouseRemote, 3 bytes */
#define MOUSE_RES_UNKNOWN (-1)
#define MOUSE_RES_DEFAULT 0
@@ -257,4 +258,7 @@ typedef struct mousevar {
#define MOUSE_SYS_STDBUTTONS 0x07
#define MOUSE_SYS_EXTBUTTONS 0x7f /* the others */
+/* Mouse remote socket */
+#define _PATH_MOUSEREMOTE "/var/run/MouseRemote"
+
#endif /* _MACHINE_MOUSE_H_ */
diff --git a/sys/sys/mouse.h b/sys/sys/mouse.h
index d0eecef..27ec8e1 100644
--- a/sys/sys/mouse.h
+++ b/sys/sys/mouse.h
@@ -20,7 +20,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: mouse.h,v 1.8 1997/10/19 10:44:02 yokota Exp $
+ * $Id: mouse.h,v 1.9 1997/12/07 08:08:50 yokota Exp $
*/
#ifndef _MACHINE_MOUSE_H_
@@ -139,6 +139,7 @@ typedef struct mousemode {
#define MOUSE_PROTO_INTELLI 10 /* MS IntelliMouse, 4 bytes */
#define MOUSE_PROTO_THINK 11 /* Kensignton Thinking Mouse, 3/4 bytes */
#define MOUSE_PROTO_SYSMOUSE 12 /* /dev/sysmouse */
+#define MOUSE_PROTO_X10MOUSEREM 13 /* X10 MouseRemote, 3 bytes */
#define MOUSE_RES_UNKNOWN (-1)
#define MOUSE_RES_DEFAULT 0
@@ -257,4 +258,7 @@ typedef struct mousevar {
#define MOUSE_SYS_STDBUTTONS 0x07
#define MOUSE_SYS_EXTBUTTONS 0x7f /* the others */
+/* Mouse remote socket */
+#define _PATH_MOUSEREMOTE "/var/run/MouseRemote"
+
#endif /* _MACHINE_MOUSE_H_ */
OpenPOWER on IntegriCloud