mirror of
https://git.freebsd.org/ports.git
synced 2025-07-14 07:49:16 -04:00
This package provides bindings to the generic input event interface in Linux. The evdev interface serves the purpose of passing events generated in the kernel directly to userspace through character devices that are typically located in /dev/input/. This package also comes with bindings to uinput, the userspace input subsystem. Uinput allows userspace programs to create and handle input devices that can inject events directly into the input subsystem. https://pypi.python.org/pypi/evdev
46 lines
933 B
Text
46 lines
933 B
Text
# XXX Patch churn from GSoC 2014, expect v4l_compat for now
|
|
|
|
--- evdev/genecodes.py~ 2014-10-07 20:16:56 UTC
|
|
+++ evdev/genecodes.py
|
|
@@ -11,11 +11,7 @@ import os, sys, re
|
|
|
|
template = r'''
|
|
#include <Python.h>
|
|
-#ifdef __FreeBSD__
|
|
-#include <dev/evdev/input.h>
|
|
-#else
|
|
#include <linux/input.h>
|
|
-#endif
|
|
|
|
/* Automatically generated by evdev.genecodes */
|
|
/* Generated on %s */
|
|
--- evdev/input.c.orig 2014-10-07 20:16:59 UTC
|
|
+++ evdev/input.c
|
|
@@ -18,11 +18,7 @@
|
|
#include <fcntl.h>
|
|
#include <unistd.h>
|
|
|
|
-#ifdef __FreeBSD__
|
|
-#include <dev/evdev/input.h>
|
|
-#else
|
|
#include <linux/input.h>
|
|
-#endif
|
|
|
|
#define MAX_NAME_SIZE 256
|
|
|
|
--- evdev/uinput.c.orig 2014-10-07 20:17:06 UTC
|
|
+++ evdev/uinput.c
|
|
@@ -8,13 +8,8 @@
|
|
#include <fcntl.h>
|
|
#include <unistd.h>
|
|
|
|
-#ifdef __FreeBSD__
|
|
-#include <dev/evdev/input.h>
|
|
-#include <dev/evdev/uinput.h>
|
|
-#else
|
|
#include <linux/input.h>
|
|
#include <linux/uinput.h>
|
|
-#endif
|
|
|
|
int _uinput_close(int fd)
|
|
{
|