diff options
author | Nikolai Kondrashov <spbnick@gmail.com> | 2010-08-25 00:39:45 +0400 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2010-08-31 14:21:39 +1000 |
commit | fbafe59420f128b6264feeb115bbcbc1c933f611 (patch) | |
tree | 798b1a6908c5e108329aae013d501befbccff5ef /src | |
parent | 990540fa1905b11403d5c25345c428c5bc9ed126 (diff) |
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 <spbnick@gmail.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/evdev.c | 10 |
1 files 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 |