These ioctl commands should be '_IOW' to set value.

WSMOUSEIO_SRES
  WSMOUSEIO_SSCALE
  WSMOUSEIO_SRATE
This commit is contained in:
takemura 2001-01-08 11:20:24 +00:00
parent 21ea7bd559
commit 757dca55b7

View File

@ -1,4 +1,4 @@
/* $NetBSD: wsconsio.h,v 1.34 2000/10/01 03:29:13 takemura Exp $ */
/* $NetBSD: wsconsio.h,v 1.35 2001/01/08 11:20:24 takemura Exp $ */
/*
* Copyright (c) 1996, 1997 Christopher G. Demetriou. All rights reserved.
@ -164,16 +164,16 @@ struct wskbd_map_data {
#define WSMOUSE_TYPE_ARCHIMEDES 8 /* Archimedes mouse */
/* Set resolution. Not applicable to all mouse types. */
#define WSMOUSEIO_SRES _IOR('W', 33, u_int)
#define WSMOUSEIO_SRES _IOW('W', 33, u_int)
#define WSMOUSE_RES_MIN 0
#define WSMOUSE_RES_DEFAULT 75
#define WSMOUSE_RES_MAX 100
/* Set scale factor (num / den). Not applicable to all mouse types. */
#define WSMOUSEIO_SSCALE _IOR('W', 34, u_int[2])
#define WSMOUSEIO_SSCALE _IOW('W', 34, u_int[2])
/* Set sample rate. Not applicable to all mouse types. */
#define WSMOUSEIO_SRATE _IOR('W', 35, u_int)
#define WSMOUSEIO_SRATE _IOW('W', 35, u_int)
#define WSMOUSE_RATE_MIN 0
#define WSMOUSE_RATE_DEFAULT 50
#define WSMOUSE_RATE_MAX 100