Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ynsta/steamcontroller.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/uinput.c')
-rw-r--r--src/uinput.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/uinput.c b/src/uinput.c
index e28110a..6232f0a 100644
--- a/src/uinput.c
+++ b/src/uinput.c
@@ -44,6 +44,7 @@ int uinput_init(
int keyboard,
__u16 vendor,
__u16 product,
+ __u16 version,
char * name)
{
struct uinput_user_dev uidev;
@@ -60,7 +61,7 @@ int uinput_init(
uidev.id.bustype = BUS_USB;
uidev.id.vendor = vendor;
uidev.id.product = product;
- uidev.id.version = 1;
+ uidev.id.version = version;
/* Key Event initialisation */
if (key_len > 0 && ioctl(fd, UI_SET_EVBIT, EV_KEY) < 0) {