summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/evdev.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/evdev.c b/src/evdev.c
index 98f2f1b..5da8960 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -1804,8 +1804,7 @@ EvdevProbe(InputInfoPtr pInfo)
int mapping = 0;
if (TestBit(i, pEvdev->key_bitmask))
{
- mapping =
- pEvdev->btnmap[EvdevUtilButtonEventToButtonNumber(pEvdev, i)];
+ mapping = EvdevUtilButtonEventToButtonNumber(pEvdev, i);
if (mapping > num_buttons)
num_buttons = mapping;
}