Commit Graph

39 Commits

Author SHA1 Message Date
Enrico Weigelt, metux IT consult
ee6dfe8381 drop extra check for ABI_XINPUT_VERSION < 12
Since we're relying on xserver >= 1.18 now, we know XINPUT abi is >= 22.1

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-08 16:10:17 +01:00
Alan Coopersmith
21bf65ae74 Add X.Org's standard C warning flags to AM_CFLAGS
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-05 17:57:26 -08:00
Alan Coopersmith
371d5174a5 InitValuatorAxisStruct: Add missing line breaks
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-16 13:17:20 -07:00
Alan Coopersmith
094d363aa9 InputDriverRec: Resolve -Wmissing-field-initializers warning
void.c:222:1: warning: missing initializer for field ‘default_options’ of ‘InputDriverRec {aka struct _InputDriverRec}’ [-Wmissing-field-initializers]
 };
 ^
In file included from void.c:39:0:
/usr/include/xorg/xf86Xinput.h:83:18: note: ‘default_options’ declared here
     const char **default_options;
                  ^~~~~~~~~~~~~~~

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-16 13:17:20 -07:00
Alan Coopersmith
1ff7a4ae9c Fix an integer truncation warning from clang
void.c:114:21: warning: implicit conversion loses integer precision:
  'int' to 'unsigned char' [-Wconversion]
            map[i + 1] = i + 1;
                       ~ ~~^~~

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-07-20 12:33:08 -07:00
Alan Coopersmith
e0f0ab22a5 Link with $(XORG_LIBS) to support no-undefined linking
Will be empty on most platforms, set to the -z parent=Xorg flag on
Solaris if building with the support for enforcing no undefined symbols.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-07-20 11:08:22 -07:00
Terry Lambert
dfb19f9131 Return proper default for unknown values in pInfo->device_control.
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-18 11:47:21 +10:00
Alan Coopersmith
28cb0b4aa5 config: Remove unnecessary calls from configure.ac
AC_PROG_CC is provided by XORG_DEFAULT_OPTIONS now
PKG_CONFIG_MODULES handles AC_SUBST of the CFLAGS variables
AC_HEADERS_STDC result was never used
No headers exist in $(top_srcdir)/src, so no point including -I in CFLAGS

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-05-02 19:29:42 -07:00
Peter Hutterer
cb8d19b8ac Fix PreInit for ABI 12.
Require an xserver 1.9.99.1 or higher and put an ifdef in for ABI 12.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
2010-11-30 07:50:57 +10:00
Peter Hutterer
7456467a04 Add mode field to xf86InitValuatorAxisStruct.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
2010-11-30 07:50:57 +10:00
Peter Hutterer
86084d219f Label the axes as absolute, not relative.
Not that it matters for this driver, but the axes are set up as absolute, so
label them accordingly.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
2010-11-30 07:50:57 +10:00
Peter Hutterer
17f94b5f0f Require xserver 1.9
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
2010-11-30 07:50:57 +10:00
Peter Hutterer
93daeb169d unifdef XFree86LOADER
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
2010-11-30 07:50:57 +10:00
Alan Coopersmith
0d7e2780cf Remove refcnt field from InputDriverRec.
Wasn't used in the server and is now removed.

Fixes compiler error:
	"void.c", line 340: too many struct/union initializers

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-10-27 22:23:03 -07:00
Gaetan Nadon
d229780bcb .gitignore: use common defaults with custom section # 24239
Using common defaults will reduce errors and maintenance.
Only the very small or inexistent custom section need periodic maintenance
when the structure of the component changes. Do not edit defaults.
2009-10-22 12:55:26 -04:00
Peter Hutterer
6b476f2e22 Don't pass an empty RMLVO to InitKeyboardDeviceStruct.
Passing in NULL is ok, an empty one isn't.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-09-07 17:06:45 +10:00
Peter Hutterer
a2ce16486c Remove RCS tags, some useless comments, empty AUTHORS from man. 2009-09-07 14:48:05 +10:00
Peter Hutterer
fb5ef37927 Remove obsolete chunk, focus/key class is added by InitKeyboardDeviceStruct.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-19 08:42:24 +10:00
Peter Hutterer
1c549f65bd Adjust for ABI_XINPUT_VERSION >= 7 2009-06-19 08:42:24 +10:00
Paulo Cesar Pereira de Andrade
2154cf5b31 Janitor: update for ABI_XINPUT_VERSION >= 5
This driver should be seen as the simplest possible input
driver, and somewhat as a skeleton/model for newer ones.
  Having it at least compiling with current xorg sdk is a plus.

Signed-off-by: Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-02-15 09:19:18 +10:00
Peter Hutterer
2ad046c73f Check for XINPUT ABI 3. 2008-05-26 22:24:22 +09:30
Alan Coopersmith
1d64a7f636 Clear compiler & sparse warnings
void.c:41:9: warning: preprocessor token NEED_XF86_TYPES redefined
/usr/X11R7/include/xorg/xorg-server.h:69:9: this was the original definition
void.c:298:35: warning: Using plain integer as NULL pointer
2007-09-07 09:48:34 -07:00
Alan Coopersmith
b5dc10b2ce Don't fill in motion_history_proc for new input ABI 2007-08-28 17:41:08 -07:00
James Cloos
464a489e9a Rename .cvsignore to .gitignore 2007-08-23 19:25:43 -04:00
Brice Goglin
1552640781 Use PACKAGE_VERSION_MAJOR/MINOR/PATCHLEVEL in xf86VoidVersionRec 2007-08-06 22:13:21 +02:00
Adam Jackson
d1faf50483 Unlibcwrap. Bump server version requirement. Bump to 1.1.0. 2006-04-07 18:18:17 +00:00
Eric Anholt
1612ace03a Add .cvsignores for drivers. 2005-11-21 10:49:09 +00:00
Kevin E Martin
60de355bce Change input drivers to get keysym's from <X11/keysym.h>. 2005-07-13 02:18:12 +00:00
Adam Jackson
22ab30324b Build skeletons for input drivers. Should basically work. 2005-07-12 06:15:10 +00:00
Adam Jackson
e96e138c6c Prep input drivers for modularizing by adding guarded #include "config.h" 2005-07-11 02:38:01 +00:00
Adam Jackson
6319ab0dab Various input drivers set their InputDriverRec to be static when doing a
loadable build, and the same symbol can't be both static and _X_EXPORT.
    Pointed out by Alan Coopersmith.
2005-06-27 18:32:55 +00:00
Adam Jackson
df2dcc5e31 Bug #3626: _X_EXPORT tags for video and input drivers. 2005-06-25 21:17:03 +00:00
Adam Jackson
c0541c7a20 Bug #2467: Fix a segfault in the void(4) driver. (David Wong) 2005-02-18 19:38:31 +00:00
Egbert Eich
118fbed4fb Merging XORG-CURRENT into trunk 2004-04-23 19:54:05 +00:00
Egbert Eich
5cb48c9f0a Importing vendor version xf86-4_4_99_1 on Sun Mar 14 00:26:39 PST 2004 2004-03-14 08:33:54 +00:00
Egbert Eich
3e81926211 Importing vendor version xf86-4_4_0 on Wed Mar 3 04:09:24 PST 2004 2004-03-03 12:12:34 +00:00
Egbert Eich
b24c0e73b4 readding XFree86's cvs IDs 2004-02-26 13:36:00 +00:00
Egbert Eich
55c2e38658 Importing vendor version xf86-4_3_99_903 on Wed Feb 26 01:21:00 PST 2004 2004-02-26 09:23:35 +00:00
Kaleb Keithley
e2f0f85327 Initial revision 2003-11-14 16:48:56 +00:00