diff options
author | nate <nate@FreeBSD.org> | 1997-01-05 06:50:22 +0000 |
---|---|---|
committer | nate <nate@FreeBSD.org> | 1997-01-05 06:50:22 +0000 |
commit | 72b34ab2b2f68d339c9b943d25135c94f46fb0c7 (patch) | |
tree | 936f66572ecb0802240c983741f57b58d571c226 /sys/alpha | |
parent | 8b939582e81bebc5c4bb1209d7e37812ccd26fe0 (diff) | |
download | FreeBSD-src-72b34ab2b2f68d339c9b943d25135c94f46fb0c7.zip FreeBSD-src-72b34ab2b2f68d339c9b943d25135c94f46fb0c7.tar.gz |
Minor white-space and comment cleanups. No functional change.
Submitted by: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
Diffstat (limited to 'sys/alpha')
-rw-r--r-- | sys/alpha/include/mouse.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/sys/alpha/include/mouse.h b/sys/alpha/include/mouse.h index 110c503..a9396f1 100644 --- a/sys/alpha/include/mouse.h +++ b/sys/alpha/include/mouse.h @@ -19,7 +19,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.1 1994/09/09 11:27:31 dfr Exp $ + * $Id$ */ #ifndef _MACHINE_MOUSE_H_ @@ -68,6 +68,7 @@ typedef struct mousestatus { int dx; /* x movement */ int dy; /* y movement */ } mousestatus_t; + /* button */ #define MOUSE_BUTTON1DOWN 0x0001 /* left */ #define MOUSE_BUTTON2DOWN 0x0002 /* middle */ @@ -85,13 +86,16 @@ typedef struct mousehw { int iftype; /* MOUSE_IF_XXX */ int type; /* mouse/track ball/pad... */ int hwid; /* I/F dependent hardware ID - for the PS/2 mouse, it will be PSM_XXX_ID */ + * for the PS/2 mouse, it will be PSM_XXX_ID + */ } mousehw_t; + /* iftype */ #define MOUSE_IF_SERIAL 0 #define MOUSE_IF_BUS 1 #define MOUSE_IF_INPORT 2 #define MOUSE_IF_PS2 3 + /* type */ #define MOUSE_UNKNOWN (-1) /* should be treated as a mouse */ #define MOUSE_MOUSE 0 @@ -102,9 +106,12 @@ typedef struct mousehw { typedef struct mousemode { int protocol; /* MOUSE_PROTO_XXX */ int rate; /* report rate (per sec), -1 if unknown */ - int resolution; /* ppi, -1 if unknown */ + int resolution; /* 1:low, 2:medium low, 3:medium high + * 4:high, 0: default, -1 if unknown + */ int accelfactor; /* accelation factor (must be 1 or greater) */ } mousemode_t; + /* protocol */ #define MOUSE_PROTO_MS 0 /* Microsoft Serial, 3 bytes */ #define MOUSE_PROTO_MSC 1 /* Mouse Systems, 5 bytes */ |