Skip to content

Commit 8682f03

Browse files
author
Marty Plummer
committed
Experimental support for EV_ABS
Signed-off-by: Marty Plummer <ntzrmtthihu777@gmail.com>
1 parent ab518cd commit 8682f03

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

evdev/input.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,8 @@ ioctl_EVIOCG_bits(PyObject *self, PyObject *args)
311311
max = KEY_MAX; break;
312312
case EV_SW:
313313
max = SW_MAX; break;
314+
case EV_ABS:
315+
max = ABS_MAX; break;
314316
default:
315317
return NULL;
316318
}
@@ -331,6 +333,8 @@ ioctl_EVIOCG_bits(PyObject *self, PyObject *args)
331333
case EV_SW:
332334
ret = ioctl(fd, EVIOCGSW(sizeof(bytes)), &bytes);
333335
break;
336+
case EV_ABS:
337+
ret = ioctl(fd, EVIOCGABS(sizeof(bytes)), &bytes);
334338
}
335339

336340
PyObject* res = PyList_New(0);

0 commit comments

Comments
 (0)