mirror of
https://github.com/X11Libre/xf86-input-evdev.git
synced 2026-04-14 11:44:16 +00:00
Compare commits
4 Commits
xf86-input
...
xf86-input
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
73e5eba8cd | ||
|
|
31853c39bf | ||
|
|
2c49e21a81 | ||
|
|
4361b3efa0 |
@@ -22,7 +22,7 @@
|
||||
|
||||
AC_PREREQ(2.57)
|
||||
AC_INIT([xf86-input-evdev],
|
||||
2.1.99.1,
|
||||
2.2.0,
|
||||
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
|
||||
xf86-input-evdev)
|
||||
|
||||
|
||||
@@ -2002,6 +2002,9 @@ EvdevInitProperty(DeviceIntPtr dev)
|
||||
int group = (button % 0x100)/16;
|
||||
int idx = button - ((button/16) * 16);
|
||||
|
||||
if (!btn_labels[group][idx])
|
||||
continue;
|
||||
|
||||
atom = XIGetKnownProperty(btn_labels[group][idx]);
|
||||
if (!atom)
|
||||
continue;
|
||||
@@ -2014,7 +2017,7 @@ EvdevInitProperty(DeviceIntPtr dev)
|
||||
|
||||
/* wheel buttons, hardcoded anyway */
|
||||
atoms[3] = XIGetKnownProperty(BTN_LABEL_PROP_BTN_WHEEL_UP);
|
||||
atoms[4] = XIGetKnownProperty(BTN_LABEL_PROP_BTN_WHEEL_UP);
|
||||
atoms[4] = XIGetKnownProperty(BTN_LABEL_PROP_BTN_WHEEL_DOWN);
|
||||
atoms[5] = XIGetKnownProperty(BTN_LABEL_PROP_BTN_HWHEEL_LEFT);
|
||||
atoms[6] = XIGetKnownProperty(BTN_LABEL_PROP_BTN_HWHEEL_RIGHT);
|
||||
|
||||
|
||||
@@ -59,6 +59,11 @@
|
||||
#define HAVE_PROPERTIES 1
|
||||
#endif
|
||||
|
||||
#ifndef MAX_VALUATORS
|
||||
#define MAX_VALUATORS 36
|
||||
#endif
|
||||
|
||||
|
||||
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 5
|
||||
typedef struct {
|
||||
char *rules;
|
||||
|
||||
Reference in New Issue
Block a user