-.\" $OpenBSD: ims.4,v 1.3 2016/07/30 15:44:45 jcs Exp $
+.\" $OpenBSD: ims.4,v 1.4 2021/01/22 17:35:00 jcs Exp $
.\"
.\" Copyright (c) 2016 Jonathan Gray <jsg@openbsd.org>
.\"
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: July 30 2016 $
+.Dd $Mdocdate: January 22 2021 $
.Dt IMS 4
.Os
.Sh NAME
.Nm ims
-.Nd I2C HID mouse support
+.Nd I2C HID pointing device support
.Sh SYNOPSIS
.Cd "ims* at ihidev?"
.Cd "wsmouse* at ims? mux 0"
.Sh DESCRIPTION
The
.Nm
-driver provides support for I2C HID mice.
+driver provides support for I2C HID touchpads and other pointing devices.
Access to these devices is through the
.Xr wscons 4
driver.
-/* $OpenBSD: ims.c,v 1.2 2018/09/01 20:50:16 jcs Exp $ */
+/* $OpenBSD: ims.c,v 1.3 2021/01/22 17:35:00 jcs Exp $ */
/*
* HID-over-i2c mouse/trackpad driver
*
switch (cmd) {
case WSMOUSEIO_GTYPE:
- /* XXX: should we set something else? */
- *(u_int *)data = WSMOUSE_TYPE_USB;
+ *(u_int *)data = WSMOUSE_TYPE_TOUCHPAD;
return 0;
default:
return -1;