› Foros › PC › Software libre
static int wheel_up_button = 4;
static int wheel_down_button = 5;
static int wheel_left_button = 6;
static int wheel_right_button = 7;
--- ../xf86-input-evdev-1.0.0.5/src/evdev.c 2005-09-24 00:32:23.000000000 +0200
+++ ./src/evdev.c 2006-04-12 12:51:15.000000000 +0200
@@ -83,10 +83,10 @@
int kernel24;
} EvdevRec, *EvdevPtr;
-static int wheel_up_button = 4;
-static int wheel_down_button = 5;
-static int wheel_left_button = 6;
-static int wheel_right_button = 7;
+static int wheel_up_button = 9;
+static int wheel_down_button = 10;
+static int wheel_left_button = 11;
+static int wheel_right_button = 12;
static void
PostButtonClicks(InputInfoPtr pInfo, int button, int count)
@@ -181,7 +181,7 @@
case BTN_FORWARD:
case BTN_BACK:
case BTN_TASK:
- xf86PostButtonEvent(pInfo->dev, 0, ev.code - BTN_LEFT + 5,
+ xf86PostButtonEvent(pInfo->dev, 0, ev.code - BTN_LEFT + 1,
value, 0, 0);
break;
pointer = 1 3 2 6 7 8 9 10 4 5 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32