There are no i2c-connected mice and ims(4) will always be a
touchpad/touchscreen/stylus that just doesn't meet the requirements
of imt(4).
Presenting it as WSMOUSE_TYPE_TOUCHPAD makes the X server set it up
as a separate pointer which may be useful.
Index: sys/dev/i2c/ims.c
===================================================================
RCS file: /cvs/src/sys/dev/i2c/ims.c,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 ims.c
--- sys/dev/i2c/ims.c 1 Sep 2018 20:50:16 -0000 1.2
+++ sys/dev/i2c/ims.c 21 Jan 2021 03:39:00 -0000
@@ -180,8 +180,7 @@ ims_ioctl(void *v, u_long cmd, caddr_t d
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;
Index: share/man/man4/ims.4
===================================================================
RCS file: /cvs/src/share/man/man4/ims.4,v
retrieving revision 1.3
diff -u -p -u -p -r1.3 ims.4
--- share/man/man4/ims.4 30 Jul 2016 15:44:45 -0000 1.3
+++ share/man/man4/ims.4 21 Jan 2021 03:39:00 -0000
@@ -19,14 +19,14 @@
.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.