~ubuntu-branches/ubuntu/raring/wacom-tools/raring

« back to all changes in this revision

Viewing changes to linuxwacom/src/util/wacdump.c

  • Committer: Bazaar Package Importer
  • Author(s): Timo Aaltonen
  • Date: 2009-03-24 10:06:54 UTC
  • mfrom: (1.12.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090324100654-u7x4rd2ked2gpksz
Tags: 1:0.8.2.2-0ubuntu1
* New upstream release. (LP: #355340)
* Patch 100_allow_eraser.patch dropped, included in this version.
* 100_fedora-fix-build.diff
  - Make the driver to build against xserver 1.6.
* 101_fedora-fix-mapping.diff
  - No button 0 in the server, all offsets have to begin at 1.
* 102_fedora-wcmmaxx.diff
  - Don't assign priv->wcmMaxX/Y back into common->wcmMaxX/Y.
* 103_fedora-hal-setup.diff
  - Add a hal callout program to set up the device.
  (LP: #215689, #356091)
* 104_revert-check.diff
  - Don't check the serial number, it breaks some devices.
* Modify 10-wacom.fdi to include changes from Fedora. Should allow
  hotplugging (built-in) serial tablets. (LP: #337112)
* rules:
  - Run autoreconf on build
  - xserver-xorg-input-wacom includes /usr/lib/hal/hal-setup-wacom
* control:
  - autoreconf: add automake, libtool to build-deps.
  - hal-setup-wacom: add libhal-dev to build-deps.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
** wacdump.c
3
3
**
4
 
** Copyright (C) 2002 - 2006 - John E. Joganic and Ping Cheng
 
4
** Copyright (C) 2002 - 2008 - John E. Joganic and Ping Cheng
5
5
**
6
6
** This program is free software; you can redistribute it and/or
7
7
** modify it under the terms of the GNU General Public License
33
33
**   2005-02-17 0.7.1 - added Graphire 4
34
34
**   2006-02-27 0.7.3 - added DTF 521, I3 12x12 & 12x19
35
35
**   2006-05-05 0.7.4 - Removed older 2.6 kernels
 
36
**   2008-12-31 0.8.2 - Support USB Tabket PCs
36
37
**
37
38
****************************************************************************/
38
39
 
49
50
#include <unistd.h>
50
51
#include <time.h>
51
52
 
52
 
#define WACDUMP_VER "0.7.4"
 
53
#define WACDUMP_VER "0.8.2"
53
54
 
54
55
/* from linux/input.h */
55
56
#define BITS_PER_LONG (sizeof(long) * 8)
258
259
        static const char* xszTool[WACOMTOOLTYPE_MAX] =
259
260
        {
260
261
                "NONE", "PEN", "PENCIL", "BRUSH", "ERASER", "AIRBRUSH",
261
 
                "MOUSE", "LENS", "PAD"
 
262
                "MOUSE", "LENS", "PAD", "TOUCH"
262
263
        };
263
264
 
264
265
        int bBold = 0;