diff options
author | Peter Wemm <peter@FreeBSD.org> | 1997-03-29 12:10:26 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 1997-03-29 12:10:26 +0000 |
commit | 63599332144472ae89a04dd63b09f1538bc00e6f (patch) | |
tree | e57b9791248dc571c7160bb63bec26571f9b1372 /usr.sbin/moused | |
parent | 0f459420f8c9afd65b23ce370c6ed7ff46155920 (diff) | |
download | src-63599332144472ae89a04dd63b09f1538bc00e6f.tar.gz src-63599332144472ae89a04dd63b09f1538bc00e6f.zip |
Allow the samplerate (in DPI) to be set on the command line, the rest of
the code appears to support it.
Notes
Notes:
svn path=/head/; revision=24377
Diffstat (limited to 'usr.sbin/moused')
-rw-r--r-- | usr.sbin/moused/moused.8 | 3 | ||||
-rw-r--r-- | usr.sbin/moused/moused.c | 8 |
2 files changed, 9 insertions, 2 deletions
diff --git a/usr.sbin/moused/moused.8 b/usr.sbin/moused/moused.8 index 81d5179498d8..d780db57c2ee 100644 --- a/usr.sbin/moused/moused.8 +++ b/usr.sbin/moused/moused.8 @@ -37,6 +37,7 @@ .Sh SYNOPSIS .Nm .Op Fl DRcdfs +.Op Fl r Ar samplerate .Op Fl S Ar baudrate .Fl p Ar port .Fl t Ar mousetype @@ -63,6 +64,8 @@ Do not become a daemon and instead run as a foreground process. Use .Ar port as the serial port to communicate with the mouse. +.It Fl r +Set the bit sample rate on devices that support it (in Dots Per Inch). .It Fl s Select a baudrate of 9600 for the serial line. .It Fl t Ar mousetype diff --git a/usr.sbin/moused/moused.c b/usr.sbin/moused/moused.c index be3730ccb24b..40085879cdeb 100644 --- a/usr.sbin/moused/moused.c +++ b/usr.sbin/moused/moused.c @@ -30,7 +30,7 @@ ** EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ** ** - ** $Id$ + ** $Id: moused.c,v 1.7 1997/02/22 16:06:42 peter Exp $ **/ /** @@ -157,7 +157,7 @@ main(int argc, char *argv[]) progname = argv[0]; - while((c = getopt(argc,argv,"cdfsp:t:h?RDS:")) != EOF) + while((c = getopt(argc,argv,"cdfr:sp:t:h?RDS:")) != EOF) switch(c) { case 'c': @@ -176,6 +176,10 @@ main(int argc, char *argv[]) rodent.portname = optarg; break; + case 'r': + rodent.samplerate = atoi(optarg); + break; + case 's': rodent.baudrate = 9600; break; |