/*
 * @DEC_COPYRIGHT@
 */
/*
 * HISTORY
 * $Log:	vsxxx.h,v $
 * Revision 1.1.3.3  92/02/27  17:10:58  Barbara_Corriero
 * 	Merge with 4.L
 * 	[92/02/24  17:26:37  Barbara_Corriero]
 * 
 * Revision 1.1.3.2  91/11/20  14:09:31  Hal_Project
 * 	Moved from dec/io/...; pool reorg
 * 	[91/11/18  08:58:10  Donald_Dutile]
 * 
 * Revision 4.2  91/09/19  23:23:09  devbld
 * 	Adding ODE Headers
 * 
 * $EndLog$
 */
/*	
 *	@(#)$RCSfile: vsxxx.h,v $ $Revision: 1.1.3.3 $ (DEC) $Date: 92/02/27 17:10:58 $
 */ 
/*
 */
/*
 * (c) Copyright 1990, OPEN SOFTWARE FOUNDATION, INC.
 * ALL RIGHTS RESERVED
 */
/*
 * OSF/1 Release 1.0
 */

/************************************************************************
 *									*
 *			Copyright (c) 1989 by				*
 *		Digital Equipment Corporation, Maynard, MA		*
 *			All rights reserved.				*
 *									*
 *   This software is furnished under a license and may be used and	*
 *   copied  only  in accordance with the terms of such license and	*
 *   with the  inclusion  of  the  above  copyright  notice.   This	*
 *   software  or  any  other copies thereof may not be provided or	*
 *   otherwise made available to any other person.  No title to and	*
 *   ownership of the software is hereby transferred.			*
 *									*
 *   The information in this software is subject to change  without	*
 *   notice  and should not be construed as a commitment by Digital	*
 *   Equipment Corporation.						*
 *									*
 *   Digital assumes no responsibility for the use  or  reliability	*
 *   of its software on equipment which is not supplied by Digital.	*
 *									*
 ************************************************************************/
#ifndef _VSXXX_H_
#define _VSXXX_H_

#define EVENT_LEFT_BUTTON	0x01
#define EVENT_MIDDLE_BUTTON	0x02
#define EVENT_RIGHT_BUTTON	0x03
#define RIGHT_BUTTON		0x01
#define MIDDLE_BUTTON		0x02
#define LEFT_BUTTON		0x04

#define EVENT_T_LEFT_BUTTON	0x01
#define EVENT_T_FRONT_BUTTON	0x02
#define EVENT_T_RIGHT_BUTTON	0x03
#define EVENT_T_BACK_BUTTON	0x04

/* puck buttons */

#define T_LEFT_BUTTON		0x02
#define T_FRONT_BUTTON		0x04
#define T_RIGHT_BUTTON		0x08
#define T_BACK_BUTTON		0x10

/* Mouse definitions */
#define MOTION_BUFFER_SIZE 100
#define SELF_TEST	'T'
#define INCREMENTAL	'R'
#define PROMPT		'D'

#define MOUSE_ID	0x2
#define TABLET_ID	0x4
#define TABLET_NOPTR    0x13
#define TABLET_STYLUS   0x11
#define TABLET_PUCK     0x00

#define START_FRAME	0x80		/* start of report frame bit	*/
#define X_SIGN		0x10		/* sign bit for X		*/
#define Y_SIGN		0x08		/* sign bit for Y		*/

#define UPDATE_POS	0x01

/* Mouse report structure definition */
struct mouse_report {
	char state;			/* buttons and sign bits	*/
	short dx;			/* delta X since last change	*/
	short dy;			/* delta Y since last change	*/
	char bytcnt;			/* mouse report byte count	*/
};
#endif /*_VSXXX_H_*/
