OSDN Git Service

android-x86/external-tslib.git
13 years agoRevert "Enable debug option for all components"
Chris Larson [Tue, 21 Dec 2010 15:19:51 +0000 (08:19 -0700)]
Revert "Enable debug option for all components"

This reverts commit 9c3742a8d8a829ec746e0a974aa30fb5dd0e3d1a.

13 years agocy8mrln-palmpre: improve interpolation till the edges
Thomas Zimmermann [Thu, 11 Nov 2010 09:04:12 +0000 (10:04 +0100)]
cy8mrln-palmpre: improve interpolation till the edges

At the edges the pressure is reduced because not the whole finger is on the
screen. Normally the pressure is about 50 and if it's not, then the finger is
not completly on the screen and we have to simulate the real peak with a pressure
of (default_pressure - actual_pressure).

Also this patch introduces two new config parameters:
pressure: for the default_pressure (default 60)
gesture_height: for the height of the gesturearea in fields (default 1)

Signed-off-by: Thomas Zimmermann <zimmermann@vdm-design.de>
13 years agocy8mrln-palmpre.c: make x grow from left to right and change calculation for OFFSET...
Thomas Zimmermann [Wed, 10 Nov 2010 15:00:00 +0000 (16:00 +0100)]
cy8mrln-palmpre.c: make x grow from left to right and change calculation for OFFSET and DELTA

* x=0 was upper right field, now it's upper left field
* OFFSET is now half of DELTA and DELTA is size of one field

Signed-off-by: Thomas Zimmermann <zimmermann@vdm-design.de>
13 years agocy8mrln-palmpre: remove cy8mrln header
Simon Busch [Fri, 22 Oct 2010 17:30:13 +0000 (19:30 +0200)]
cy8mrln-palmpre: remove cy8mrln header

13 years agocy8mrln-palmpre: clean indentation and add some ifdef's
Simon Busch [Fri, 22 Oct 2010 17:20:02 +0000 (19:20 +0200)]
cy8mrln-palmpre: clean indentation and add some ifdef's

13 years agoFix exporting of ts_error_fn
Paulius Zaleckas [Thu, 28 Oct 2010 16:42:58 +0000 (19:42 +0300)]
Fix exporting of ts_error_fn

Without including tslib.h GCC doesn't export ts_error_fn symbol:
$ gcc -lts test.c -o test
/tmp/ccUi1g92.o: In function `main':
test.c:(.text+0x1a): undefined reference to `ts_error_fn'
collect2: ld returned 1 exit status

Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
13 years agocy8mrln-palmpre: New way to simple interpolate values
Frederik 'playya' Sdun [Fri, 8 Oct 2010 17:27:55 +0000 (19:27 +0200)]
cy8mrln-palmpre: New way to simple interpolate values

13 years agocy8mrln-palmpre: init already requires module.dev to be set
Frederik 'playya' Sdun [Thu, 7 Oct 2010 00:17:11 +0000 (02:17 +0200)]
cy8mrln-palmpre: init already requires module.dev to be set

13 years agocy8mrln-palmpre: add sensor_offset_[xy] and
Frederik 'playya' Sdun [Wed, 6 Oct 2010 02:36:18 +0000 (04:36 +0200)]
cy8mrln-palmpre: add sensor_offset_[xy] and
sensor_delta_[xy].
remove some unused code

13 years agocy8mrln-palmpre: Remove pressure multiplicator.
Frederik 'playya' Sdun [Tue, 5 Oct 2010 21:30:26 +0000 (23:30 +0200)]
cy8mrln-palmpre: Remove pressure multiplicator.
Use linear module

13 years agolinear: Add options for ts.conf
Frederik 'playya' Sdun [Tue, 5 Oct 2010 21:29:48 +0000 (23:29 +0200)]
linear: Add options for ts.conf

13 years agocy8mrln-palmpre: Add ts_pressure_mul configure option
Frederik 'playya' Sdun [Tue, 5 Oct 2010 19:43:32 +0000 (21:43 +0200)]
cy8mrln-palmpre: Add ts_pressure_mul configure option

13 years agocy8mrln-palmpre: Remove delta correction for x/y
Frederik 'playya' Sdun [Mon, 4 Oct 2010 11:09:25 +0000 (13:09 +0200)]
cy8mrln-palmpre: Remove delta correction for x/y

13 years agocy8mrln-palmpre: do interpolation from last commit in the right way ;)
Thomas Zimmermann [Sat, 2 Oct 2010 17:15:36 +0000 (19:15 +0200)]
cy8mrln-palmpre: do interpolation from last commit in the right way ;)

Signed-off-by: Thomas Zimmermann <zimmermann@vdm-design.de>
13 years agocy8mrln-palmpre: new way of interpolating the position
Thomas Zimmermann [Sat, 2 Oct 2010 17:04:37 +0000 (19:04 +0200)]
cy8mrln-palmpre: new way of interpolating the position

* substract half of maximum pressure from all surrounding fields

Signed-off-by: Thomas Zimmermann <zimmermann@vdm-design.de>
13 years agocy8mrln-palmpre: remove reference parameter from interpolate
Frederik 'playya' Sdun [Sun, 3 Oct 2010 19:13:51 +0000 (21:13 +0200)]
cy8mrln-palmpre: remove reference parameter from interpolate
update indentation

13 years agocy8mrln-palmpre: Some code cleanup and normalize
Frederik 'playya' Sdun [Wed, 29 Sep 2010 18:43:19 +0000 (20:43 +0200)]
cy8mrln-palmpre: Some code cleanup and normalize
field while updating references

13 years agocy8mrln-palmpre: A lot of code cleanup and return
Frederik 'playya' Sdun [Wed, 29 Sep 2010 15:43:12 +0000 (17:43 +0200)]
cy8mrln-palmpre: A lot of code cleanup and return
samples with pressure = 0 if a finger left the screen

13 years agocy8mrln-palmpre: Add configuration to the info
Frederik 'playya' Sdun [Tue, 28 Sep 2010 22:15:58 +0000 (00:15 +0200)]
cy8mrln-palmpre: Add configuration to the info
struct and add noise and ts_pressure option

13 years agocy8mrln-palmpre: use fixed value for pressure
Frederik 'playya' Sdun [Mon, 21 Jun 2010 20:45:05 +0000 (22:45 +0200)]
cy8mrln-palmpre: use fixed value for pressure

13 years agocy8mrln-palmpre: read for the null values until we get some
Simon Busch [Fri, 21 May 2010 09:23:26 +0000 (11:23 +0200)]
cy8mrln-palmpre: read for the null values until we get some

13 years agoEnable debug option for all components
Simon Busch [Fri, 21 May 2010 09:13:58 +0000 (11:13 +0200)]
Enable debug option for all components

13 years agocy8mrln-palmpre: adjust noice value to sort out more unimportant samples
Simon Busch [Fri, 21 May 2010 08:38:09 +0000 (10:38 +0200)]
cy8mrln-palmpre: adjust noice value to sort out more unimportant samples

13 years agocy8mrln-palmpre: initalize all samples with proper values
Simon Busch [Fri, 21 May 2010 08:36:54 +0000 (10:36 +0200)]
cy8mrln-palmpre: initalize all samples with proper values

13 years agocy8mrln-palmpre: add newline to the debug output
Thomas Zimmermann [Fri, 21 May 2010 06:57:26 +0000 (08:57 +0200)]
cy8mrln-palmpre: add newline to the debug output

Signed-off-by: Thomas Zimmermann <zimmermann@vdm-design.de>
13 years agoRevert "cy8mrln-palmpre: increment samp only on real event"
Thomas Zimmermann [Fri, 21 May 2010 06:56:29 +0000 (08:56 +0200)]
Revert "cy8mrln-palmpre: increment samp only on real event"

This reverts commit 36c413dc9941cf7116deac4b1e96ebbeaadf3aa3.

13 years agocy8mrln-palmpre: only report valid samples and nothing more
Simon Busch [Fri, 21 May 2010 08:00:30 +0000 (10:00 +0200)]
cy8mrln-palmpre: only report valid samples and nothing more

13 years agocy8mrln-palmpre: fix typing error
Simon Busch [Fri, 21 May 2010 07:41:09 +0000 (09:41 +0200)]
cy8mrln-palmpre: fix typing error

13 years agocy8mrln-palmpre: print out just another value
Simon Busch [Fri, 21 May 2010 07:37:43 +0000 (09:37 +0200)]
cy8mrln-palmpre: print out just another value

13 years agocy8mrln-palmpre: prevent segfault by setting timestamp for sample before incrementing
Simon Busch [Fri, 21 May 2010 07:32:15 +0000 (09:32 +0200)]
cy8mrln-palmpre: prevent segfault by setting timestamp for sample before incrementing

Signed-off-by: Simon Busch <morphis@gravedo.de>
13 years agocy8mrln-palmpre: increment samp only on real event
Thomas Zimmermann [Thu, 20 May 2010 14:24:32 +0000 (16:24 +0200)]
cy8mrln-palmpre: increment samp only on real event

Signed-off-by: Thomas Zimmermann <zimmermann@vdm-design.de>
13 years agocy8mrln-palmpre: enable debug mode
Simon Busch [Thu, 20 May 2010 11:36:56 +0000 (13:36 +0200)]
cy8mrln-palmpre: enable debug mode

13 years agocy8mrln-palmpre: be not verbose on kernel side per default
Simon Busch [Wed, 19 May 2010 08:46:08 +0000 (10:46 +0200)]
cy8mrln-palmpre: be not verbose on kernel side per default

13 years agocy8mrln-palmpre: add error message when a configuration function fails
Simon Busch [Wed, 19 May 2010 07:16:01 +0000 (09:16 +0200)]
cy8mrln-palmpre: add error message when a configuration function fails

13 years agocy8mrln-palmpre: add cy8mrln.h as local include
Simon Busch [Thu, 13 May 2010 16:42:46 +0000 (18:42 +0200)]
cy8mrln-palmpre: add cy8mrln.h as local include

Signed-off-by: Simon Busch <morphis@gravedo.de>
13 years agocy8mrnln-palmpre: fix compile errors
Simon Busch [Fri, 7 May 2010 17:54:13 +0000 (19:54 +0200)]
cy8mrnln-palmpre: fix compile errors

Signed-off-by: Simon Busch <morphis@gravedo.de>
13 years agocy8mrln-palmpre: remove unused struct
Thomas Zimmermann [Wed, 5 May 2010 17:18:48 +0000 (19:18 +0200)]
cy8mrln-palmpre: remove unused struct

Signed-off-by: Thomas Zimmermann <zimmermann@vdm-design.de>
13 years agocymrln-palmpre: add coordinates calculation
Thomas Zimmermann [Wed, 5 May 2010 17:10:23 +0000 (19:10 +0200)]
cymrln-palmpre: add coordinates calculation

Signed-off-by: Thomas Zimmermann <ml@vdm-design.de>
13 years agocy8mrln-palmpre: New plugin for the Palm Pre's Touchscreen
Frederik 'playya' Sdun [Tue, 4 May 2010 11:18:22 +0000 (13:18 +0200)]
cy8mrln-palmpre: New plugin for the Palm Pre's Touchscreen

13 years agoFix wrong buffer size passed to strncpy
Michael Heimpold [Mon, 4 Oct 2010 19:54:24 +0000 (21:54 +0200)]
Fix wrong buffer size passed to strncpy

Use a define which represents the destination buffer instead
of the string length of the source string.
Also, instead of a call to memset use a faster assignment.

Signed-off-by: Michael Heimpold <michael.heimpold -at- s2000.tu-chemnitz.de>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
13 years agoFix current values for input-raw
Teresa Gamez [Mon, 4 Oct 2010 09:45:14 +0000 (11:45 +0200)]
Fix current values for input-raw

The input driver only sends new ABS_X and ABS_Y events when the value changes,
even after a pen up and a pen down.

If we have the same y value after releasing and touching again, there will be
no ABS_Y event sent and the sample returns at an EV_SYN the value x,0.

So we don't change the current values at pen_up, but a flag that sets the sample
values to 0.

Signed-off-by: Teresa Gamez <t.gamez@phytec.de>
Signed-off-by: Jan Weitzel <j.weitzel@phytec.de>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
13 years agoAdd bits to conditionalize VT_WAITACTIVE usage
Chris Larson [Sat, 4 Sep 2010 03:41:22 +0000 (20:41 -0700)]
Add bits to conditionalize VT_WAITACTIVE usage

Per harry-F, wrap VT_WAITACTIVE bits in a #ifndef TSLIB_NO_VT_WAITACTIVE, to
allow distribution folks to define that via the cflags/cppflags if necessary.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
13 years agocy8mrln-palmpre: this merges all recent changes from the tslib/cy8mrln branch
Simon Busch [Wed, 2 Jun 2010 17:11:20 +0000 (19:11 +0200)]
cy8mrln-palmpre: this merges all recent changes from the tslib/cy8mrln branch

In detail this includes the following changes:
 * be not verbose on kernel side per default (verbose = 0)
 * only report valid samples and no more
 * adjust noise value to sort out more no valid samples
 * prevent runtime errors in set-methods and be more verbose on errors
 * remove unused code
 * initialize samples with null values on start
 * read null values on startup until we got some

Signed-off-by: Simon Busch <morphis@gravedo.de>
14 years agoMerge branch 'playya'
Chris Larson [Tue, 11 May 2010 14:53:48 +0000 (07:53 -0700)]
Merge branch 'playya'

* playya:
  cy8mrln-palmpre: remove unused struct
  cymrln-palmpre: add coordinates calculation
  cy8mrln-palmpre: New plugin for the Palm Pre's Touchscreen
  .gitignore++
  Add .gitignore

14 years agoDrop cvsignore files
Chris Larson [Tue, 11 May 2010 14:53:31 +0000 (07:53 -0700)]
Drop cvsignore files

Signed-off-by: Chris Larson <clarson@kergoth.com>
14 years agoDrop $Id lines, now that we are using git
Chris Larson [Tue, 11 May 2010 01:24:23 +0000 (18:24 -0700)]
Drop $Id lines, now that we are using git

Signed-off-by: Chris Larson <clarson@kergoth.com>
14 years agocy8mrln-palmpre: remove unused struct
Thomas Zimmermann [Wed, 5 May 2010 17:18:48 +0000 (19:18 +0200)]
cy8mrln-palmpre: remove unused struct

Signed-off-by: Thomas Zimmermann <zimmermann@vdm-design.de>
14 years agocymrln-palmpre: add coordinates calculation
Thomas Zimmermann [Wed, 5 May 2010 17:10:23 +0000 (19:10 +0200)]
cymrln-palmpre: add coordinates calculation

Signed-off-by: Thomas Zimmermann <ml@vdm-design.de>
14 years agocy8mrln-palmpre: New plugin for the Palm Pre's Touchscreen
Frederik 'playya' Sdun [Tue, 4 May 2010 11:18:22 +0000 (13:18 +0200)]
cy8mrln-palmpre: New plugin for the Palm Pre's Touchscreen

14 years ago.gitignore++
Frederik 'playya' Sdun [Tue, 4 May 2010 11:13:56 +0000 (13:13 +0200)]
.gitignore++

14 years agoAdd .gitignore
Frederik 'playya' Sdun [Tue, 4 May 2010 10:10:56 +0000 (12:10 +0200)]
Add .gitignore

14 years agoApply patch from solar to also create a tslib.pc.
Chris Larson [Mon, 8 Feb 2010 23:38:52 +0000 (23:38 +0000)]
Apply patch from solar to also create a tslib.pc.

tslib-$LT_RELEASE.pc will die in a future version, as it's unnecessary.
They'll both stay around for version 1.1 and 1.2.  1.3 or higher will remove
it, unless there's a real need (unlikely).

Signed-off-by: Chris Larson <clarson@kergoth.com>
14 years agoSupport static modules aka modules which are embedded inside libts
Chris Larson [Mon, 25 Jan 2010 21:26:38 +0000 (21:26 +0000)]
Support static modules aka modules which are embedded inside libts

This can be usefull for statically linked application or platforms
where dlopen(3) is not available.

A module will be compiled statically if it was requested during
./configure with --enable-$FOO=static.

Static modules will have precedence over shared ones which means
if a module is configured to be embedded inside libts it's
corresponding shared library isn't build and ignored even if
it is in $TSLIB_PLUGINDIR.

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>
Signed-off-by: Chris Larson <clarson@mvista.com>
14 years agolinear: remove useless variable initialization
Chris Larson [Mon, 25 Jan 2010 21:25:39 +0000 (21:25 +0000)]
linear: remove useless variable initialization

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>
Signed-off-by: Chris Larson <clarson@mvista.com>
14 years agolinear: remove erroneous close(2)
Chris Larson [Mon, 25 Jan 2010 21:25:26 +0000 (21:25 +0000)]
linear: remove erroneous close(2)

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>
Signed-off-by: Chris Larson <clarson@mvista.com>
14 years agolinear: remove unused variables
Chris Larson [Mon, 25 Jan 2010 21:25:14 +0000 (21:25 +0000)]
linear: remove unused variables

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>
Signed-off-by: Chris Larson <clarson@mvista.com>
14 years agoconfigure: disable check for c++ compiler
Chris Larson [Mon, 25 Jan 2010 21:24:57 +0000 (21:24 +0000)]
configure: disable check for c++ compiler

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>
Signed-off-by: Chris Larson <clarson@mvista.com>
14 years agoinput-raw: Handling of EVIOCGBIT() ioctl coding
Chris Larson [Wed, 30 Sep 2009 21:25:09 +0000 (21:25 +0000)]
input-raw: Handling of EVIOCGBIT() ioctl coding

Correct the coding of ioctl() when using EVIOCGBIT() macro.
Indeed, instead of a number of bits, this field requires
a size in bytes.
This bug is described in the Linux kernel drivers/input/evdev.c
file and in this webpage:
http://userweb.kernel.org/~dtor/eviocgbit-bug.html

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Chris Larson <clarson@mvista.com>
14 years agoAdd missing ts_option.c.
Chris Larson [Wed, 17 Jun 2009 16:25:10 +0000 (16:25 +0000)]
Add missing ts_option.c.

Inadvertantly missed a file when applying the patch from Alberto Mardegan.

Signed-off-by: Chris Larson <clarson@mvista.com>
15 years agoFaciliates usage in a different resolution from when it was calibrated.
Chris Larson [Fri, 22 May 2009 16:32:41 +0000 (16:32 +0000)]
Faciliates usage in a different resolution from when it was calibrated.

This is the first attempt to implement the possibility of using tslib even
from a graphic mode different from the one that was active when calibration
was performed.

*) Modifies ts_calibrate: now the program appends to /etc/pointercal two
additional values, i.e. x and y of current screen resolution.
*) Adds a ts_option function call to tslib API; right now this can be used to
inform tslib about current screen resolution and rotation.
*) Modifies the "linear" plugin to take into account current screen
resolution, and return values scaled accordingly.

Signed-off-by: Alberto Mardegan <mardy@sourceforge.net>
Signed-off-by: Chris Larson <clarson@kergoth.com>
15 years agoRely on SYN-Events when pen is lifted
Chris Larson [Tue, 24 Mar 2009 18:05:15 +0000 (18:05 +0000)]
Rely on SYN-Events when pen is lifted

when the input-raw module of tslib relies on SYN-Events, it should not report
a BTN_TOUCH to upper layers before the corresponding EV_SYN was seen.

This prevents seeing two pen up events as described in my posting from
Jan, 14 2009.

Signed-off-by: Michael Heimpold <michael.heimpold@s2000.tu-chemnitz.de>
Signed-off-by: Chris Larson <clarson@kergoth.com>
15 years agoPatch to make /etc/pointercal relative to systemconfdir
Chris Larson [Tue, 24 Mar 2009 18:02:37 +0000 (18:02 +0000)]
Patch to make /etc/pointercal relative to systemconfdir

While /etc/ts.conf is always relative to systemconfdir (set during ./
configure), the /etc/pointercal file is hard-coded to /etc/pointercal.
For users who wish to prefix their installation this is troublesome,
and impossible if they cannot/do not which to modify the root /etc.
The patch below resolves this by making /etc/pointercal relative to
the systemconfdir set during ./configure (or defaults to prefix/etc as
it should). This mirrors the behavior of tslib's /etc/ts.conf file.

Signed-off-by: Daniel Jabbour <daniel@laptouchinc.com>
Signed-off-by: Chris Larson <clarson@kergoth.com>
15 years agoPrefix/correct some error messages in input-raw module
Chris Larson [Tue, 24 Mar 2009 17:54:45 +0000 (17:54 +0000)]
Prefix/correct some error messages in input-raw module

I guess there were some copy & paste mistakes in the error messages in the
input-raw module and BTW I unified the messages with the tslib prefix used in
other messages.

Signed-off-by: Michael Heimpold <michael.heimpold@s2000.tu-chemnitz.de>
Signed-off-by: Chris Larson <clarson@kergoth.com>
15 years agotslib fails to compile on Ubuntu 8.10+, easy patch
Chris Larson [Tue, 24 Mar 2009 17:42:34 +0000 (17:42 +0000)]
tslib fails to compile on Ubuntu 8.10+, easy patch

I noticed that gcc fails to compile the latest svn copy of tslib due
to a potentially "unsafe" use of open(). Ubuntu 8.10+, for instance,
by default enables the compiler flag -D_FORTIFY_SOURCE=2 which throws
an error on lines 253 and 255 of ts_calibrate.c. This is a pretty
minor issue, but could potentially stop some people using Ubuntu from
compiling unless they realize what's going on.

To fix this, all you need to do is set a mode in the open() call. I
patched ts_calibrate.c to set 0644 (S_IRUSR | S_IWUSR | S_IRGRP |
S_IROTH) and it compiles fine. See below.

Signed-off-by: Daniel Jabbour <daniel@laptouchinc.com>
Signed-off-by: Chris Larson <clarson@kergoth.com>
15 years agoFix regularly reported absbit/keybit copy/paste bug.
Chris Larson [Sun, 22 Mar 2009 02:20:07 +0000 (02:20 +0000)]
Fix regularly reported absbit/keybit copy/paste bug.

Sorry for the delay, folks, I've been busy switching to my new position within
MontaVista.

Signed-off-by: Chris Larson <clarson@kergoth.com>
15 years agoFix syntax errors from previous commit which broke the build, courtesy Jim Huang.
Chris Larson [Thu, 20 Nov 2008 20:53:15 +0000 (20:53 +0000)]
Fix syntax errors from previous commit which broke the build, courtesy Jim Huang.

Signed-off-by: Chris Larson <clarson@kergoth.com>
15 years agoAdd TODO file.
Chris Larson [Thu, 20 Nov 2008 20:53:04 +0000 (20:53 +0000)]
Add TODO file.

Signed-off-by: Chris Larson <clarson@kergoth.com>
15 years agoClean up the remnant USE_INPUT_API bits, as noted by Wolfram Sang
Chris Larson [Thu, 20 Nov 2008 16:15:41 +0000 (16:15 +0000)]
Clean up the remnant USE_INPUT_API bits, as noted by Wolfram Sang

Signed-off-by: Chris Larson <clarson@kergoth.com>
15 years agoKill old unused ts_read_raw_module.c
Chris Larson [Thu, 20 Nov 2008 16:15:27 +0000 (16:15 +0000)]
Kill old unused ts_read_raw_module.c

Signed-off-by: Chris Larson <clarson@kergoth.com>
15 years agoDefine the _CNT macros if needed.
Chris Larson [Tue, 18 Nov 2008 15:47:57 +0000 (15:47 +0000)]
Define the _CNT macros if needed.

EV_CNT & friends weren't added to linux/input.h until 2.6.24-rc1.

15 years agoClear the ts event buffer at appropriate points in ts_calibrate
Chris Larson [Thu, 13 Nov 2008 03:14:16 +0000 (03:14 +0000)]
Clear the ts event buffer at appropriate points in ts_calibrate

Fixes the issue where an accidental double-tap at one coordinate results in
having to restart the calibration, since the second tap gets read as the next
coordinate for the calibration.  Patch courtesy MontaVista Software, Inc.

Signed-off-by: Chris Larson <clarson@kergoth.com>
15 years agoBTN_TOUCH is only *required* when the device isn't able to measure pressure,
Chris Larson [Tue, 11 Nov 2008 21:27:07 +0000 (21:27 +0000)]
BTN_TOUCH is only *required* when the device isn't able to measure pressure,
since we can also infer a press/release from the pressure value.

Signed-off-by: Chris Larson <clarson@kergoth.com>
15 years agoKill AC_FUNC_MALLOC, as it's only needed when the code is calling malloc with an...
Chris Larson [Tue, 11 Nov 2008 20:37:30 +0000 (20:37 +0000)]
Kill AC_FUNC_MALLOC, as it's only needed when the code is calling malloc with an argument of zero.

15 years agoCleanup and kill syntax errors introduced by copying/pasting bits from a badly wrappe...
Chris Larson [Tue, 11 Nov 2008 20:22:25 +0000 (20:22 +0000)]
Cleanup and kill syntax errors introduced by copying/pasting bits from a badly wrapped mail patch.

15 years agoUse memset rather than bzero
Chris Larson [Tue, 11 Nov 2008 01:11:20 +0000 (01:11 +0000)]
Use memset rather than bzero

Signed-off-by: Chris Larson <clarson@kergoth.com>
15 years agots_test: add quit button
Chris Larson [Tue, 4 Nov 2008 14:54:50 +0000 (14:54 +0000)]
ts_test: add quit button

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Chris Larson <clarson@kergoth.com>
15 years agoUpdate the INSTALL file to the latest from autotools.
Chris Larson [Sat, 1 Nov 2008 22:40:12 +0000 (22:40 +0000)]
Update the INSTALL file to the latest from autotools.

Signed-off-by: Chris Larson <clarson@kergoth.com>
15 years agoFix the build of the linear-h2200 plugin.
Chris Larson [Sat, 1 Nov 2008 22:18:16 +0000 (22:18 +0000)]
Fix the build of the linear-h2200 plugin.

Patch courtesy Eric Morrill <EMorrill@EmpowerTechnologies.com>

Signed-off-by: Chris Larson <clarson@kergoth.com>
15 years agoFix use with devices that can't measure pressure, courtesy Vojtech Pavlik.
Chris Larson [Sat, 1 Nov 2008 22:18:06 +0000 (22:18 +0000)]
Fix use with devices that can't measure pressure, courtesy Vojtech Pavlik.

Signed-off-by: Chris Larson <clarson@kergoth.com>
15 years agoLink plugins against libts
Chris Larson [Sat, 1 Nov 2008 20:46:07 +0000 (20:46 +0000)]
Link plugins against libts

Some plugins use tslib functions. Link those plugins against libts.
The problem is easy to see with LDFLAGS="-Wl,-no-undefined".
Without this change DirectFB in unable to use tslib because symbols
in the tslib plugins can't be resolved.

Signed-off-by: Ville Syrjala <syrjala@sci.fi>
Signed-off-by: Chris Larson <clarson@kergoth.com>
15 years agoAdd debug prints to plugin loading
Chris Larson [Sat, 1 Nov 2008 20:45:57 +0000 (20:45 +0000)]
Add debug prints to plugin loading

Add some debug prints (and include stdio.h) which can help diagnose
plugin load problems.

Signed-off-by: Ville Syrjala <syrjala@sci.fi>
Signed-off-by: Chris Larson <clarson@kergoth.com>
15 years agoRemove extra slash from plugin path
Chris Larson [Sat, 1 Nov 2008 20:45:48 +0000 (20:45 +0000)]
Remove extra slash from plugin path

Cosmetic change. Remove an extra slash character from the plugin path.

Signed-off-by: Ville Syrjala <syrjala@sci.fi>
Signed-off-by: Chris Larson <clarson@kergoth.com>
15 years agoBump version to 1.0 (from poky)
Chris Larson [Sat, 1 Nov 2008 20:45:34 +0000 (20:45 +0000)]
Bump version to 1.0 (from poky)

Signed-off-by: Koen Kooi <k.kooi@student.utwente.nl>
Signed-off-by: Chris Larson <clarson@kergoth.com>
16 years agoThis patch adds support for "EVIOCGRAB" on the input device, which
Chris Larson [Wed, 11 Jul 2007 19:49:33 +0000 (19:49 +0000)]
This patch adds support for "EVIOCGRAB" on the input device, which
tells the kernel _not_ to deliver events of the touchscreen to
/dev/input/mice.

This is probably what most people want, since unprocessed raw touchscreen
events should not be converted to emulated PS/2 mouse movements.

Signed-off-by: Harald Welte <laforge@openmoko.org>
Signed-off-by: Chris Larson <clarson@kergoth.com>
16 years agoAdd tatung webpad raw module, courtesy Nicolas FR.
Chris Larson [Wed, 11 Jul 2007 19:32:58 +0000 (19:32 +0000)]
Add tatung webpad raw module, courtesy Nicolas FR.

16 years agoUpdated INSTALL file.
Chris Larson [Wed, 11 Jul 2007 19:32:16 +0000 (19:32 +0000)]
Updated INSTALL file.

17 years agoplugins/collie.c,plugins/corgi.c: Apply patch from Richard Purdie to
Chris Larson [Wed, 16 Aug 2006 21:48:28 +0000 (21:48 +0000)]
plugins/collie.c,plugins/corgi.c: Apply patch from Richard Purdie to
fix the microseconds field of the timeval struct, as it was
inadvertantly holding milliseconds.

19 years ago* src/tslib-filter.h: BUGFIX: make the symbol used by the plugins,
Chris Larson [Wed, 2 Mar 2005 01:18:05 +0000 (18:18 -0700)]
* src/tslib-filter.h: BUGFIX: make the symbol used by the plugins,
tslib_parse_vars, visible.

19 years ago* m4/internal/visibility.m4, src/Makefile.am, plugins/Makefile.am:
Chris Larson [Tue, 1 Mar 2005 06:44:12 +0000 (23:44 -0700)]
* m4/internal/visibility.m4, src/Makefile.am, plugins/Makefile.am:
Fixup the visibility macros to set VIS_CFLAGS and VIS_CXXFLAGS, so
we can choose to use the visibility flags for the core lib and
plugins, but not the test apps, as the gains would be nonexistant
there.

19 years agos/Bump the LT_RELEASE,/Bump the LT_REVISION,/;
Chris Larson [Tue, 1 Mar 2005 01:58:12 +0000 (18:58 -0700)]
s/Bump the LT_RELEASE,/Bump the LT_REVISION,/;

19 years ago* tslib.pc.in: Add pkg-config file for tslib.
Chris Larson [Tue, 1 Mar 2005 01:56:09 +0000 (18:56 -0700)]
* tslib.pc.in: Add pkg-config file for tslib.
* configure.ac, Makefile.am: Create tslib-$LT_RELEASE.pc, and install
it into the correct place.  Also change the AC_INIT 'PACKAGE' from
libts to tslib.  Bump the LT_RELEASE, since libts has changed a fair
bit now, in preparation for the 1.0.0 release.
* .cvsignore: Add *.pc to CVS ignore.

19 years agoAdd a PLACEHOLDER file to m4/external, so that cvs up -P doesn't kill it off.
Chris Larson [Tue, 1 Mar 2005 01:03:32 +0000 (18:03 -0700)]
Add a PLACEHOLDER file to m4/external, so that cvs up -P doesn't kill it off.

19 years agoUpdate autogen-clean.sh to add a few more files to remove.
Chris Larson [Sat, 26 Feb 2005 09:06:20 +0000 (02:06 -0700)]
Update autogen-clean.sh to add a few more files to remove.

19 years agoconfigure.ac: Bump version passed to AC_INIT, set my email address as the contact...
Chris Larson [Sat, 26 Feb 2005 09:03:59 +0000 (02:03 -0700)]
configure.ac: Bump version passed to AC_INIT, set my email address as the contact point for the time being.

19 years agoAdd config.h.in to .cvsignore.
Chris Larson [Sat, 26 Feb 2005 09:02:44 +0000 (02:02 -0700)]
Add config.h.in to .cvsignore.

19 years agoKill unnecessary config.h.in and add .cvsignore files.
Chris Larson [Sat, 26 Feb 2005 09:02:23 +0000 (02:02 -0700)]
Kill unnecessary config.h.in and add .cvsignore files.

19 years agoAdd m4 bits that I forgot to check in.
Chris Larson [Sat, 26 Feb 2005 09:00:48 +0000 (02:00 -0700)]
Add m4 bits that I forgot to check in.

19 years agoAdd acinclude.m4 that I forgot to check in.
Chris Larson [Sat, 26 Feb 2005 09:00:07 +0000 (02:00 -0700)]
Add acinclude.m4 that I forgot to check in.

19 years agoCourtesy Michael Opdenacker, add a tslib plugin to linearly scale
Chris Larson [Sat, 26 Feb 2005 08:54:51 +0000 (01:54 -0700)]
Courtesy Michael Opdenacker, add a tslib plugin to linearly scale
touchscreen values for the HP iPAQ h22xx.

19 years agoApply patch to add support for using the new gcc symbol visibility
Chris Larson [Sat, 26 Feb 2005 08:47:23 +0000 (01:47 -0700)]
Apply patch to add support for using the new gcc symbol visibility
features that are available in gcc 4.0 (and patched 3.4.x).  Also
import a few m4 macros and general buildsystem updates to facilitate
automatic use of gcc visibility if it's supported.