summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2013-01-30Handle DEVICE_ABORT on input ABI 19.1Peter Hutterer
Don't do anything, but don't print a warning either. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2013-01-17Added axis inversion functionality.Jaska Kivela
The module would previously log a message if min > max, but not do anything about it. Keep the original min/max around, swap on-the-fly. Signed-off-by: Jaska Kivela <jaska@kivela.net> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-08-17Added correct scaling of axes.Søren Holm
Signed-off-by: Søren Holm <sh@sgh.dk> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-08-17Don't force pInfo->flags to 0 (#40870)Peter Hutterer
The server uses the flags to decide if a device comes up as attached or floating slave. Overwriting the flag after the server has processed the CorePointer/AlwaysCore/Floating/etc options results in the device always coming up as floating slave. This again makes the device appear unresponsive. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-07-30Constify a few stringsPeter Hutterer
xf86Elo.c:74:5: warning: initialization discards 'const' qualifier from pointer target type [enabled by default] several of: xf86Elo.c:915:3: warning: initialization discards 'const' qualifier from pointer target type [enabled by default] (input ABI 18 only) xf86Elo.c:1012:9: warning: assignment discards 'const' qualifier from pointer target type [enabled by default] Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-07-30Swap calls to Error() to ErrorFPeter Hutterer
Error doesn't exist anymore, removed in xorg-server-1.11.0-182-g09dbfcb Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-07-19Test the device in PreInit and fail if it cannot be opened.Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-07-19Don't free on init failure, let UnInit take care of it.Peter Hutterer
Avoid double-frees when the server calls Uninit. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-07-19Use xf86SetStrOption for Option DevicePeter Hutterer
Let the device be printed in the logs Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-07-18Return proper default for unknown values in pInfo->device_control.Terry Lambert
Signed-off-by: Terry Lambert <tlambert@chromium.org> Reviewed-by: Stephane Marchesin <marcheu@chromium.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-07-08Fix name and type_name for elographicsPeter Hutterer
Don't overwrite the user-assigned name and use XI_TOUCHSCREEN for type_name. Don't allow Option "DeviceName", use Identifier instead. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-06-27Require server 1.10Peter Hutterer
And remove the manual input ABI check. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-12-06Support input ABI 12Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Cyril Brulebois <kibi@debian.org>
2010-12-03Remove refcount field, dropped from the serverPeter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Cyril Brulebois <kibi@debian.org>
2010-12-03Drop close_proc, conversion_proc, reverse_conversion_procPeter Hutterer
All three are not called by the server anymore. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Cyril Brulebois <kibi@debian.org>
2010-12-03Drop driver-specific motion history size handling.Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Cyril Brulebois <kibi@debian.org>
2010-12-03Require server 1.9, drop earlier ABI supportPeter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Cyril Brulebois <kibi@debian.org>
2010-12-03Replace LocalDevicePtr with InputInfoPtrPeter Hutterer
Both describe the same struct, LocalDevicePtr has been removed from the server. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Cyril Brulebois <kibi@debian.org>
2010-12-03unifdef XFree86LOADERPeter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Cyril Brulebois <kibi@debian.org>
2010-06-09Remove libcwrappers for malloc and free.Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-12-18Added support for GeneralTouch serial touchscreens.Peter Hutterer
Signed-off-by: Ivan Afonichev <ivan.afonichev@gmail.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-12-16xf86EloReadInput(): fix xserver unresponsiveness during touchMichael Smith
The fix for bug #14109 ensures all bytes are emptied from the OS buffer by looping until xf86WaitForInput returns 0. This patch just changes the timeout from 1 millisecond to 0: we don't want the X server to block if there's no more serial data. It also removes the Vmin and Vtime options, which were making the calls to read() block until a complete 10-byte packet buffer could be filled. At 9600 bps, this could pause the X server for up to 9 ms. The code can already handle partial buffers, so all we have to do is get rid of the Vmin. Also, if xf86EloGetPacket() returns !Success, we should continue rather than break so the xf86WaitForInput call can decide whether to exit, in case there's more data in the buffer. Before the fix, glxgears was giving me about 390 FPS normally and down to 140 FPS when dragging an empty area of the touchscreen. Now it's basically unchanged when the touchscreen is in use (390 -> 385 FPS). X.Org Bug 14109 <https://bugs.freedesktop.org/show_bug.cgi?id=14109> Signed-off-by: Michael Smith <msmith@cbnco.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-08-24Reset local->private to NULL to avoid double-frees. (#23239)Peter Hutterer
X.Org Bug 23239 <http://bugs.freedesktop.org/show_bug.cgi?id=23239> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-17Cope with XINPUT ABI 7.Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-02-02Janitor: make distcheck, .gitignore.Paulo Cesar Pereira de Andrade
2009-01-29Fix InputDriverRec allocation and freeing.Matthieu Herrb
This caused X server to access free()'d memory on exit path. Thanks to msys.ch for providing a test machine.
2008-10-14Add special handling for Sunit dSeries. RH #445193Peter Hutterer
This model does not reply to queries about touchscreen identification. After opening the fd, we can skip right to enabling the device. Red Hat Bug <https://bugzilla.redhat.com/show_bug.cgi?id=445193>
2008-10-14Add Option "Model" to supported list of options.Peter Hutterer
Some touchscreens supported by this driver need special handling, hence the explicit specification of the model. Note that this commit does not actually do anything with the information, it just sets some internal state. Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
2008-08-14Fix build, xf86Version.h -> xorgVersion.hPeter Hutterer
2008-06-18Don't convert coordinates for servers 1.4 and above.William Brack
These servers do the coordinate conversion themselves, so no need to do it in the driver. Signed-off-by: Peter Hutterer <peter@cs.unisa.edu.au>
2008-06-17Remove RCS tags.Peter Hutterer
2008-06-17Remove XFREE_V4 define and all code that expects it to be unset.Peter Hutterer
If you're still not running something more recent than X11 3, then you have other issues anyway.
2008-06-17Remove trailing whitespaces.Peter Hutterer
2008-06-17WaitForInput before trying to xf86EloGetPacket. #14109William M. Brack
Followup to 72408c2404246b9cb4698bd45be439be8ced3c23. This patch isn't perfect yet, usage of O_NONBLOCK would be preferred and some better error handling for incomplete packages, but at least it's less broken than without this patch. Signed-off-by: Peter Hutterer <peter@cs.unisa.edu.au> X.Org Bug 14109 <http://bugs.freedesktop.org/show_bug.cgi?id=14109>
2008-05-27Check for XINPUT ABI 3.Peter Hutterer
2008-05-01Don't divide by zero. #14902Peter Hutterer
X.Org Bug 14902 <http://bugs.freedesktop.org/show_bug.cgi?id=14902>
2008-02-28Wrap the content of ReadInput into a loop. Bug #14109Peter Hutterer
There may be more than one packet waiting for us at a time, so loop until we don't get one anymore. This patch is untested for lack of a device, but should fix X.Org Bug 14109 <http:/bugs.freedesktop.org/show_bug.cgi?id=14109>
2008-01-09Remove reliance on xf86_ansic.hBenjamin Close
xf86_ansic.h is no longer part of the xorg hence this causes compilations failures on some architectures Found by: Tinderbox
2007-12-28Bug #13248: use -1, -1 as min/max value for valuators.Jaroslaw Siebert
If we specify a min/max value for our valuators, the X server will clip any coordinates at these values. This fixes the second issue reported in #13248 X.Org Bugzilla #13248 <https://bugs.freedesktop.org/show_bug.cgi?id=13248>
2007-12-28Bug #13248: pass the correct coordinates to the DDX.Jaroslaw Siebert
cur_x and cur_y are the packets we get from the deviec, but after scaling the actual coordinates we need to only deal with x and y. This fixes one issue reported Bug #13248. X.Org Bugzilla #13248 <https://bugs.freedesktop.org/attachment.cgi?id=13248>
2007-12-28Bug #9803: Don't allow zero-sized width/height.Daniel Drake
A bad configuration can result in height or width being zero. This potentially causes a divide-by-zero error in xf86EloConvert(). Detect the bad configuration early on and produce a meaningful error message. X.Org Bugzilla #9803 <https://bugs.freedesktop.org/show_bug.cgi?id=9803>
2007-08-23Rename .cvsignore to .gitignoreJames Cloos
2007-08-06Use PACKAGE_VERSION_MAJOR/MINOR/PATCHLEVEL in version_recBrice Goglin
2005-11-21Add .cvsignores for drivers.Eric Anholt
2005-07-13Update all input drivers to pass distcheckKevin E Martin
2005-07-12Build skeletons for input drivers. Should basically work.Adam Jackson
2005-07-11Prep input drivers for modularizing by adding guarded #include "config.h"XORG-6_8_99_900XORG-6_8_99_16XORG-6_8_99_15Adam Jackson
2005-07-03Change <X11/misc.h> and <X11/os.h> to "misc.h" and "os.h".XORG-6_8_99_14Daniel Stone
2005-07-01Change all misc.h and os.h references to <X11/foo.h>.Daniel Stone
2005-06-27Various input drivers set their InputDriverRec to be static when doing aAdam Jackson
loadable build, and the same symbol can't be both static and _X_EXPORT. Pointed out by Alan Coopersmith.