aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/mouse.h
diff options
context:
space:
mode:
authorAmancio Hasty <ahasty@FreeBSD.org>1998-06-14 20:05:27 +0000
committerAmancio Hasty <ahasty@FreeBSD.org>1998-06-14 20:05:27 +0000
commit679786927141ddfbf62b73a4531ff128aeb869b2 (patch)
tree2202885df6579f3ebb3768a801b106538569c19a /sys/sys/mouse.h
parentc619155f0e77b6d7c2c629d8008ddcb71d1d83ee (diff)
downloadsrc-679786927141ddfbf62b73a4531ff128aeb869b2.tar.gz
src-679786927141ddfbf62b73a4531ff128aeb869b2.zip
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
Notes
Notes: svn path=/head/; revision=36991
Diffstat (limited to 'sys/sys/mouse.h')
-rw-r--r--sys/sys/mouse.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/sys/mouse.h b/sys/sys/mouse.h
index d0eecefd4b01..27ec8e1fe94a 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_ */