Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions evdev/input.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,25 +119,6 @@ device_read_many(PyObject *self, PyObject *args)
}


// Unpack a single event (this is essentially a struct.unpack(), without having
// to worry about word size.
static PyObject *
event_unpack(PyObject *self, PyObject *args)
{
struct input_event event;

const char *data;
int len;

int ret = PyArg_ParseTuple(args, "s#", &data, &len);
if (!ret) return NULL;

memcpy(&event, data, sizeof(event));

Py_RETURN_NONE;
}


// Get the event types and event codes that the input device supports
static PyObject *
ioctl_capabilities(PyObject *self, PyObject *args)
Expand Down Expand Up @@ -445,7 +426,6 @@ erase_effect(PyObject *self, PyObject *args)


static PyMethodDef MethodTable[] = {
{ "unpack", event_unpack, METH_VARARGS, "unpack a single input event" },
{ "ioctl_devinfo", ioctl_devinfo, METH_VARARGS, "fetch input device info" },
{ "ioctl_capabilities", ioctl_capabilities, METH_VARARGS, "fetch input device capabilities" },
{ "ioctl_EVIOCGREP", ioctl_EVIOCGREP, METH_VARARGS},
Expand Down