DataMuseum.dk

Presents historical artifacts from the history of:

Regnecentalen RC-900

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Regnecentalen RC-900

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download

⟦ff9134b3e⟧ TextFile

    Length: 1276 (0x4fc)
    Types: TextFile
    Notes: UNIX file
    Names: »mouse.h«

Derivation

└─⟦7decd0fac⟧ Bits:30004155/disk4.imd SW95713I 386/ix Software Development System Rel. 2.0
└─⟦7decd0fac⟧ UNIX Filesystem
    └─⟦this⟧ »sd/new/usr/include/tam/sys/mouse.h« 

TextFile

/*	Copyright (c) 1984, 1986, 1987, 1988 AT&T	*/
/*	  All Rights Reserved  	*/

/*	THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T	*/
/*	The copyright notice above does not evidence any   	*/
/*	actual or intended publication of such source code.	*/

#ident	"@(#)mouse.h	2.3 - 88/05/27"
#ifndef _MOUSE
#define _MOUSE

/* Keyboard/Mouse Codes						*/
#define MSENABLE	0xD0	/* enable mouse			*/
#define MSDISABLE	0xD1	/* disable mouse		*/
#define BEGMOUSE	0xCE	/* mouse data follows		*/
#define BEGEMOUSE	0xCF	/* mouse data lost		*/
#define BEGKBD		0xDF	/* kbd data follows		*/

/* Bits in the mouse byte #1					*/
#define MBUTR	0x01			/* right button down	*/
#define MBUTM	0x02			/* middle button down	*/
#define MBUTL	0x04			/* left button down	*/
#define MSY	0x08			/* sign of Y		*/
#define MSX	0x10			/* sign of X		*/
#define MBUTALL	(MBUTL|MBUTM|MBUTR)	/* all the buttons	*/

/* Default scaling formulae					*/
#define MDPI	200			/* mouse dots/inch	*/
#define MVI	4			/* mouse vertical trav	*/
#define MHI	4			/* horizontal trav	*/
#define MXSCALE	((MHI*MDPI)/VIDWIDTH)	/* x scaling		*/
#define MYSCALE	((MVI*MDPI)/VIDHEIGHT)	/* y scaling		*/

/* Communication between interrupt and wproc level		*/
struct msinfo {
	long	physmx;
	long	physmy;
	char	mb;
};
#endif _MOUSE