From fbafe59420f128b6264feeb115bbcbc1c933f611 Mon Sep 17 00:00:00 2001 From: Nikolai Kondrashov Date: Wed, 25 Aug 2010 00:39:45 +0400 Subject: Fix comments about BTN_TOOL_PEN. Fix incorrect usage of BTN_DIGI instead of BTN_TOOL_PEN in comments. Fix forgotten pEvdev->digi reference. Signed-off-by: Nikolai Kondrashov Signed-off-by: Peter Hutterer --- src/evdev.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/evdev.c b/src/evdev.c index 512e957..0c96344 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -400,11 +400,11 @@ EvdevProcessValuators(InputInfoPtr pInfo, int v[MAX_VALUATORS], int *num_v, *first_v = first; } /* - * Some devices only generate valid abs coords when BTN_DIGI is + * Some devices only generate valid abs coords when BTN_TOOL_PEN is * pressed. On wacom tablets, this means that the pen is in - * proximity of the tablet. After the pen is removed, BTN_DIGI is + * proximity of the tablet. After the pen is removed, BTN_TOOL_PEN is * released, and a (0, 0) absolute event is generated. Checking - * pEvdev->digi here, lets us ignore that event. pEvdev is + * pEvdev->tool here, lets us ignore that event. pEvdev is * initialized to 1 so devices that doesn't use this scheme still * just works. */ @@ -614,9 +614,9 @@ EvdevPostAbsoluteMotionEvents(InputInfoPtr pInfo, int *num_v, int *first_v, EvdevPtr pEvdev = pInfo->private; /* - * Some devices only generate valid abs coords when BTN_DIGI is + * Some devices only generate valid abs coords when BTN_TOOL_PEN is * pressed. On wacom tablets, this means that the pen is in - * proximity of the tablet. After the pen is removed, BTN_DIGI is + * proximity of the tablet. After the pen is removed, BTN_TOOL_PEN is * released, and a (0, 0) absolute event is generated. Checking * pEvdev->tool here, lets us ignore that event. pEvdev->tool is * initialized to 1 so devices that don't use this scheme still -- cgit v1.2.3