diff options
author | peter <peter@FreeBSD.org> | 1997-03-29 12:10:26 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1997-03-29 12:10:26 +0000 |
commit | 8a46d2ea3693c052231dcc93dee59c1288c632d6 (patch) | |
tree | 53f5612386ac300e73cd3cc6d75272ef330e29bd /usr.sbin/moused/moused.c | |
parent | 37683aa141312336fa1439c6d7079f99a5ca64a5 (diff) | |
download | FreeBSD-src-8a46d2ea3693c052231dcc93dee59c1288c632d6.zip FreeBSD-src-8a46d2ea3693c052231dcc93dee59c1288c632d6.tar.gz |
Allow the samplerate (in DPI) to be set on the command line, the rest of
the code appears to support it.
Diffstat (limited to 'usr.sbin/moused/moused.c')
-rw-r--r-- | usr.sbin/moused/moused.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/moused/moused.c b/usr.sbin/moused/moused.c index be3730c..4008587 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; |