335 Commits

Author SHA1 Message Date
Gaetan Nadon
342908f4d0 config: fix warnings, m4 quoting and layout
Fix some m4 quoting
Fix some autoconf warnings
Regroup statements per section
Add comments
Remove unused NDEBUG define

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-06-11 17:41:59 -04:00
Gaetan Nadon
e98f0d0349 config: remove AC_PROG_CC as it overrides AC_PROG_C_C99
XORG_STRICT_OPTION from XORG_DEFAULT_OPTIONS calls
AC_PROG_C_C99. This sets gcc with -std=gnu99.
If AC_PROG_CC macro is called afterwards, it resets CC to gcc.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-06-11 15:48:38 -04:00
Gaetan Nadon
c6908579b5 config: remove unrequired AC_HEADER_STDC
Autoconf says:
"This macro is obsolescent, as current systems have conforming
header files. New programs need not use this macro".

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-06-11 15:48:38 -04:00
Gaetan Nadon
ab6308ed17 config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERS
Regroup AC statements at the top.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-06-11 15:48:37 -04:00
Gaetan Nadon
2252c78fb1 config: update AC_PREREQ statement to 2.60
Unrelated to the previous patches, the new value simply reflects
the reality that the minimum level for autoconf to configure
all x.org modules is 2.60 dated June 2006.

ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.60.tar.gz

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-06-11 15:48:30 -04:00
Gaetan Nadon
25722aa12b config: remove AH_TOP autoheader statement
The generated config.h does not need to include xorg-server.h
for the content it provides.
Add #include <xorg-server.h> in .[hc] files as needed.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-06-11 15:44:26 -04:00
Gaetan Nadon
3de065d682 config: move CWARNFLAGS from configure.ac to Makefile.am
Compiler warning flags should be explicitly set in the makefile
rather than being merged with other packages compiler flags.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-02-11 10:08:07 -05:00
Alan Coopersmith
30d1089cff Update Sun license notices to current X.Org standard form
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2010-01-15 15:08:26 -08:00
Gaetan Nadon
efe94ccfb4 configure.ac: use backticks rather than $() for cmd subs
Use "$PKG_CONFIG" rather than hard coded "pkg-config"

Acked-by: Dan Nicholson <dbn.lists@gmail.com>
Acked-by: Daniel Stone <daniel@fooishbar.org>

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2009-12-28 15:17:11 -05:00
Gaetan Nadon
ad0abb97a1 Makefile.am: add ChangeLog and INSTALL on MAINTAINERCLEANFILES
Now that the INSTALL file is generated.
Allows running make maintainer-clean.
2009-11-23 09:25:05 -05:00
Gaetan Nadon
260c441981 INSTALL, NEWS, README or AUTHORS files are missing/incorrect #24206
Automake 'foreign' option is specified in configure.ac.
Remove from Makefile.am
2009-11-02 18:00:58 -05:00
Gaetan Nadon
877f13a605 INSTALL, NEWS, README or AUTHORS files are missing/incorrect #24206
Add missing INSTALL file. Use standard GNU file on building tarball
README may have been updated
Remove AUTHORS file as it is empty and no content available yet.
Remove NEWS file as it is empty and no content available yet.
2009-11-02 18:00:58 -05:00
Gaetan Nadon
9fc986bd5d Several driver modules do not have a ChangeLog target in Makefile.am #23814
The git generated ChangeLog replaces the hand written one.
Update configure.ac to xorg-macros level 1.3.
Use XORG_DEFAULT_OPTIONS which replaces four XORG_* macros
Update Makefile.am to add ChangeLog target if missing
Remove ChangeLog from EXTRA_DIST or *CLEAN variables
This is a pre-req for the INSTALL_CMD
2009-11-02 18:00:58 -05:00
Gaetan Nadon
cd4e5ab0c6 .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-11-02 17:50:09 -05:00
Sascha Hlusiak
eaf8d1a1d8 Bump to 1.5.0
Signed-off-by: Sascha Hlusiak <saschahlusiak@arcor.de>
xf86-input-joystick-1.5.0
2009-10-31 12:41:15 +01:00
Sascha Hlusiak
657c01c8eb Revert "add shave support"
This reverts commit 1fa414dd6f.
2009-10-07 09:24:39 +02:00
Sascha Hlusiak
565de79d42 Merge branch 'scancodes'
Conflicts:
	configure.ac
xf86-input-joystick-1.4.99.2
2009-10-02 11:32:40 +02:00
Sascha Hlusiak
1fa414dd6f add shave support
clean up compile output
2009-10-02 11:31:14 +02:00
Sascha Hlusiak
5fdab9ca49 Fix NULL pointers in rmlvo 2009-09-11 18:23:26 +02:00
Sascha Hlusiak
462aae4db1 Merge branch 'scancodes' of ssh://deepthought/home/sascha/develop/xorg/xf86-input-joystick into scancodes 2009-09-11 17:54:13 +02:00
Peter Hutterer
729b5bc6e3 joystick 1.4.99.1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
xf86-input-joystick-1.4.99.1
2009-09-11 13:56:53 +10:00
Peter Hutterer
e8f2249383 Fix typo in configure. 2009-09-11 13:56:53 +10:00
Sascha Hlusiak
b2de71f436 Support for axis labels; fix build on master
The first two axes are always REL_X and REL_Y. All other axes and buttons
are set to 'None', proper labeling will follow.

Thanks to Peter for the heads up.

Signed-off-by: Sascha Hlusiak <saschahlusiak@arcor.de>
2009-06-23 23:51:32 +02:00
Sascha Hlusiak
5e2b2a6310 fix manpage and examples to reflect recent key changes 2009-04-15 00:29:44 +02:00
Sascha Hlusiak
bf86269672 Property support for scancodes
Allows setting scancodes for keys using input-properties
2009-04-14 23:25:44 +02:00
Sascha Hlusiak
57bf11bc03 configure.ac: this is 1.4.99
Major changes in configuration call for a major release.
2009-04-11 14:25:07 +02:00
Sascha Hlusiak
7f6e390fb1 Use preset keyboard layout instead of custom generated keymap.
Restored compatibility with recent xkb changes and xorg-server-1.7.
Keys are configured now using scancodes instead of keysyms. Depends on
set keymap; people could write custom layouts.
2009-04-11 14:19:58 +02:00
Sascha Hlusiak
4fbfcb17d6 Remove parsing of keysyms.
Key options are expected to be scancodes/plain numbers now.
2009-04-11 13:13:16 +02:00
Sascha Hlusiak
7c677b3d26 Remove ks_tables.h
No more keysym parsing
2009-04-11 13:12:17 +02:00
Sascha Hlusiak
8075ee4808 Remove parsing of keysyms
Change of configuration semantics again. Keys are specified in scancodes instead of keysyms.
2009-04-11 13:11:24 +02:00
Sascha Hlusiak
e171007239 Fix compiler warning about stray INT8-CARD8 conversion 2009-03-19 21:14:22 +01:00
Sascha Hlusiak
7af61c78fd Merge branch 'pwm' 2009-03-19 21:13:13 +01:00
Sascha Hlusiak
bc430cc2aa Missing initialization of button amplify
Always initialize button[]->amplify with 1.0
2009-03-19 21:08:30 +01:00
Sascha Hlusiak
dca19bde2b Merge branch 'master' of sascha:develop/xorg/xf86-input-joystick 2009-03-19 08:36:10 +01:00
Sascha Hlusiak
4b9aafd82b Mention PWM mode in man page 2009-03-18 18:13:12 +01:00
Sascha Hlusiak
6f2a211b7c Fix build on FreeBSD with USB2
Including dev/usb/usb_ioctl.h fixes missing declaration
of USB_GET_REPORT_ID on FreeBSD-Current.
2009-03-18 17:39:07 +01:00
Sascha Hlusiak
c6217b5849 Comment float properties in joystick-properties.h
Signed-off-by: Sascha Hlusiak <saschahlusiak@arcor.de>
2009-03-01 21:06:52 +01:00
Sascha Hlusiak
367c32bab5 Support for float properties
Signed-off-by: Sascha Hlusiak <saschahlusiak@arcor.de>
2009-03-01 21:00:18 +01:00
Sascha Hlusiak
4978e78e7c Add PWM key generation when axis in accelerated mode
When axis is in accelerated mode and keyhigh/keylow is set,
the deflection of the axis will be linked to the _percent of time_ the key
will be down. Full deflection will set the key permanently down (old behaviour).

50% deflection will result in the key being  50ms down and 50ms up.
75% deflection will result in the key being 150ms down and 50ms up.
etc.
Minimum interval is 50ms, maximum is 600ms.
2009-02-19 23:40:58 +01:00
Sascha Hlusiak
d4bb86ddb0 Don't set axis.oldvalue in backend
The value needs to be set where it's needed, like in timers.
2009-02-19 23:37:46 +01:00
Sascha Hlusiak
4ec4376522 Fix for sparse warning of uninitialized variable
If axis is inside deadzone, 0.0 should be assumed.
2009-02-17 20:18:05 +01:00
Paulo Cesar Pereira de Andrade
b70b1f7d82 Janitor: gcc 4.5 and sparse warnings.
It is still required a patch in the X Server sdk to correct some
remaining warnings. Isn't it amazing that <X11/extensions/XKBsrv.h>
and $sdkdir/xkbsrv.h both use the #ifndef _XKBSRV_H_ include guard?

Signed-off-by: Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>
2009-02-17 20:15:18 +01:00
Paulo Cesar Pereira de Andrade
76b82a41a6 Janitor: make distcheck, .gitignore.
The correction for make distcheck uses the same solution proposed
for xf86-input-evdev, that uses the new configure option --with-sdkdir.

Signed-off-by: Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>
2009-02-17 20:06:44 +01:00
Sascha Hlusiak
4671904035 Use InitKeyboardDeviceStruct instead of nonexistant XkbInitKeyboardDeviceStruct
Realizing XkbInitKeyboardDeviceStruct has been removed, we do need to use InitKeyboardDeviceStruct.
This breaks custom keymaps on ABI_XINPUT_VERSION >= 5.

Hopefully this can be reimplemented later.
2009-02-02 00:10:42 +01:00
Alan Coopersmith
3984947ada Add README with pointers to mailing list, bugzilla & git repos 2009-01-30 20:23:09 -08:00
Sascha Hlusiak
fb632ba226 Fix build on master. All hail XKB! 2009-01-26 20:48:00 +01:00
Alan Coopersmith
f62159e4df Remove xorgconfig & xorgcfg from See Also list in man page 2009-01-09 16:14:12 -08:00
Sascha Hlusiak
43e2f05268 Prepare for 1.4.0 release xf86-input-joystick-1.4.0 2008-12-28 18:57:36 +01:00
Sascha Hlusiak
fd80f1c2b5 Matched comments in joystick-properties.h with previous commit 2008-12-28 17:32:44 +01:00
Sascha Hlusiak
f81b9077d1 Export JSTK_* constants with joystick-properties.h 2008-12-28 17:28:50 +01:00