moused.c (102413) | moused.c (108470) |
---|---|
1/** 2 ** Copyright (c) 1995 Michael Smith, All rights reserved. 3 ** 4 ** Redistribution and use in source and binary forms, with or without 5 ** modification, are permitted provided that the following conditions 6 ** are met: 7 ** 1. Redistributions of source code must retain the above copyright 8 ** notice, this list of conditions and the following disclaimer as --- 32 unchanged lines hidden (view full) --- 41 ** The mouse interface functions are derived closely from the mouse 42 ** handler in the XFree86 X server. Many thanks to the XFree86 people 43 ** for their great work! 44 ** 45 **/ 46 47#ifndef lint 48static const char rcsid[] = | 1/** 2 ** Copyright (c) 1995 Michael Smith, All rights reserved. 3 ** 4 ** Redistribution and use in source and binary forms, with or without 5 ** modification, are permitted provided that the following conditions 6 ** are met: 7 ** 1. Redistributions of source code must retain the above copyright 8 ** notice, this list of conditions and the following disclaimer as --- 32 unchanged lines hidden (view full) --- 41 ** The mouse interface functions are derived closely from the mouse 42 ** handler in the XFree86 X server. Many thanks to the XFree86 people 43 ** for their great work! 44 ** 45 **/ 46 47#ifndef lint 48static const char rcsid[] = |
49 "$FreeBSD: head/usr.sbin/moused/moused.c 102413 2002-08-25 13:30:43Z charnier $"; | 49 "$FreeBSD: head/usr.sbin/moused/moused.c 108470 2002-12-30 21:18:15Z schweikh $"; |
50#endif /* not lint */ 51 52#include <ctype.h> 53#include <err.h> 54#include <errno.h> 55#include <fcntl.h> 56#include <limits.h> 57#include <stdio.h> --- 1101 unchanged lines hidden (view full) --- 1159 bcopy(proto[rodent.rtype], cur_proto, sizeof(cur_proto)); 1160 } 1161 } 1162 cur_proto[4] = rodent.mode.packetsize; 1163 cur_proto[0] = rodent.mode.syncmask[0]; /* header byte bit mask */ 1164 cur_proto[1] = rodent.mode.syncmask[1]; /* header bit pattern */ 1165 } 1166 | 50#endif /* not lint */ 51 52#include <ctype.h> 53#include <err.h> 54#include <errno.h> 55#include <fcntl.h> 56#include <limits.h> 57#include <stdio.h> --- 1101 unchanged lines hidden (view full) --- 1159 bcopy(proto[rodent.rtype], cur_proto, sizeof(cur_proto)); 1160 } 1161 } 1162 cur_proto[4] = rodent.mode.packetsize; 1163 cur_proto[0] = rodent.mode.syncmask[0]; /* header byte bit mask */ 1164 cur_proto[1] = rodent.mode.syncmask[1]; /* header bit pattern */ 1165 } 1166 |
1167 /* maybe this is an PnP mouse... */ | 1167 /* maybe this is a PnP mouse... */ |
1168 if (rodent.mode.protocol == MOUSE_PROTO_UNKNOWN) { 1169 1170 if (rodent.flags & NoPnP) 1171 return rodent.rtype; 1172 if (((len = pnpgets(pnpbuf)) <= 0) || !pnpparse(&pnpid, pnpbuf, len)) 1173 return rodent.rtype; 1174 1175 debug("PnP serial mouse: '%*.*s' '%*.*s' '%*.*s'", --- 1801 unchanged lines hidden --- | 1168 if (rodent.mode.protocol == MOUSE_PROTO_UNKNOWN) { 1169 1170 if (rodent.flags & NoPnP) 1171 return rodent.rtype; 1172 if (((len = pnpgets(pnpbuf)) <= 0) || !pnpparse(&pnpid, pnpbuf, len)) 1173 return rodent.rtype; 1174 1175 debug("PnP serial mouse: '%*.*s' '%*.*s' '%*.*s'", --- 1801 unchanged lines hidden --- |