Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial revision - a base library for querying information about tablets
Only one data file shipped so far, for a I4 wireless model. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
- Loading branch information
0 parents
commit 658456b
Showing
20 changed files
with
2,896 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
INSTALL | ||
Makefile | ||
Makefile.in | ||
aclocal.m4 | ||
autom4te.cache | ||
config.guess | ||
config.h | ||
config.h.in | ||
config.log | ||
config.status | ||
config.sub | ||
configure | ||
install-sh | ||
missing | ||
depcomp | ||
doc/html | ||
doc/latex | ||
ltmain.sh | ||
libtool | ||
stamp-h1 | ||
*.pc | ||
*.o | ||
*.lo | ||
*.la | ||
*.swp | ||
.deps | ||
.libs | ||
test/load |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Copyright © 2011 Red Hat, Inc. | ||
|
||
Permission to use, copy, modify, distribute, and sell this software | ||
and its documentation for any purpose is hereby granted without | ||
fee, provided that the above copyright notice appear in all copies | ||
and that both that copyright notice and this permission notice | ||
appear in supporting documentation, and that the name of Red Hat | ||
not be used in advertising or publicity pertaining to distribution | ||
of the software without specific, written prior permission. Red | ||
Hat makes no representations about the suitability of this software | ||
for any purpose. It is provided "as is" without express or implied | ||
warranty. | ||
|
||
THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, | ||
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN | ||
NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR | ||
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS | ||
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, | ||
NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN | ||
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
SUBDIRS = libwacom data doc test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
libwacom is a library to identify wacom tablets and their model-specific | ||
features. It provides easy access to information such as "is this a built-in | ||
on-screen tablet", "what is the size of this model", etc. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#! /bin/sh | ||
|
||
srcdir=`dirname $0` | ||
test -z "$srcdir" && srcdir=. | ||
|
||
ORIGDIR=`pwd` | ||
cd $srcdir | ||
|
||
autoreconf -v --install || exit 1 | ||
cd $ORIGDIR || exit $? | ||
|
||
$srcdir/configure --enable-maintainer-mode "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Initialize Autoconf | ||
AC_PREREQ([2.60]) | ||
AC_INIT([libwacom], [0.1]) | ||
AC_CONFIG_HEADERS([config.h]) | ||
|
||
# Initialize Automake | ||
AM_INIT_AUTOMAKE([foreign dist-bzip2]) | ||
AM_MAINTAINER_MODE | ||
|
||
# Initialize libtool | ||
AC_PROG_LIBTOOL | ||
|
||
# Checks for programs. | ||
AC_PROG_CC | ||
AC_PROG_INSTALL | ||
PKG_PROG_PKG_CONFIG | ||
|
||
AC_CHECK_PROG(HAVE_DOXYGEN, [doxygen], [yes], [no]) | ||
AM_CONDITIONAL(HAVE_DOXYGEN, test "x$HAVE_DOXYGEN" = xyes) | ||
|
||
PKG_CHECK_MODULES(GLIB, glib-2.0) | ||
|
||
AC_CONFIG_FILES([Makefile | ||
data/Makefile | ||
doc/Makefile | ||
test/Makefile | ||
libwacom/Makefile | ||
libwacom.pc]) | ||
AC_OUTPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
libwacomdir = $(datadir)/libwacom | ||
dist_libwacom_DATA = $(shell find $(top_srcdir)/data -name "*.tablet" -printf "%P\n") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[Device] | ||
Product=Intuos 4 WL 6x9 | ||
Vendor=Wacom | ||
DeviceMatch=usb:056a:00bc | ||
Class=Intuos4 | ||
Width=9 | ||
Height=6 | ||
|
||
[Features] | ||
Stylus=true | ||
Ring=true | ||
VStrip=false | ||
HStrip=false | ||
Buttons=9 | ||
BuiltIn=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Example model file description for a tablet | ||
[Device] | ||
|
||
# The product is the product name announced by the kernel | ||
Product=Intuos 4 WL 6x9 | ||
|
||
# Vendor name of this tablet | ||
Vendor=Wacom | ||
|
||
# DeviceMatch includes the bus (usb, serial), the vendor ID and the actual | ||
# product ID | ||
DeviceMatch=usb:056a:00bc | ||
|
||
# Class of the tablet. Valid classes include Intuos3, Intuos4, Graphire, Bamboo, Cintiq | ||
Class=Intuos4 | ||
|
||
# Exact model of the tablet, not including the size. | ||
Model=Intuos 4 Wireless | ||
|
||
# Width in inches, as advertised by the manufacturer | ||
Width=9 | ||
|
||
# Height in inches, as advertised by the manufacturer | ||
Height=6 | ||
|
||
# Optional features that this tablet supports | ||
# Some features are dependent on the actual tool used, e.g. not all styli | ||
# have an eraser and some styli have additional custom axes (e.g. the | ||
# airbrush pen). These features describe those available on the tablet. | ||
# | ||
# Features not set in a file default to false/0 | ||
|
||
[Features] | ||
# This tablet supports styli (and erasers, if present on the actual stylus) | ||
Stylus=true | ||
|
||
# This tablet supports touch. | ||
Touch=false | ||
|
||
# This tablet has a touch ring (Intuos4 and Cintiq 24HD) | ||
Ring=true | ||
# This tablet has a second touch ring (Cintiq 24HD) | ||
Ring2=false | ||
|
||
# This tablet has a vertical/horizontal scroll strip | ||
VStrip=false | ||
HStrip=false | ||
|
||
# Number of buttons on the tablet | ||
Buttons=9 | ||
|
||
# This tablet is built-in (most serial tablets, Cintiqs) | ||
BuiltIn=false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
EXTRA_DIST = doxygen.conf | ||
|
||
if HAVE_DOXYGEN | ||
|
||
# This should actual do something, but beats me how | ||
html: libwacom/libwacom.h | ||
doxygen doxygen.conf | ||
endif | ||
|
Oops, something went wrong.