]>
diplodocus.org Git - xorg-xinput/log
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Peter Hutterer [Fri, 8 May 2009 05:15:45 +0000 (15:15 +1000)]
Merge branch 'master' into xi2
Conflicts:
src/xinput.h
Peter Hutterer [Fri, 8 May 2009 04:21:17 +0000 (14:21 +1000)]
Update to new inputproto defines.
Peter Hutterer [Thu, 30 Apr 2009 06:53:05 +0000 (16:53 +1000)]
update test_xi2 with a few more tests.
Peter Hutterer [Thu, 7 May 2009 04:00:46 +0000 (14:00 +1000)]
XCloseDisplay when we're done.
This isn't really necessary, but we might as well be correct.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Thu, 7 May 2009 02:56:58 +0000 (12:56 +1000)]
Clean up xinput.h a bit
Remove the unnecessary NeedFunctionPrototypes ifdef.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Thu, 7 May 2009 04:37:58 +0000 (14:37 +1000)]
Add support for XI2 property requests.
If XI2 is available, we use XI2 for list-props, delete-prop and set-prop.
Peter Hutterer [Thu, 7 May 2009 04:13:45 +0000 (14:13 +1000)]
Get the XIDeviceInfo instead of just the id.
This way we leak the XIDeviceInfo array, but then again it doesn't matter
since we exit after the command anyway.
And with the XIDeviceInfo around, we can actually print the name and
whatnot.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Thu, 7 May 2009 04:00:46 +0000 (14:00 +1000)]
XCloseDisplay when we're done.
This isn't really necessary, but we might as well be correct.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Thu, 7 May 2009 03:59:12 +0000 (13:59 +1000)]
Remove one more unnecessary ifdef.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Thu, 7 May 2009 03:06:05 +0000 (13:06 +1000)]
Merge branch 'master' into xi2
Conflicts:
src/property.c
src/xinput.c
src/xinput.h
Peter Hutterer [Thu, 7 May 2009 02:56:58 +0000 (12:56 +1000)]
Clean up xinput.h a bit
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Fri, 1 May 2009 01:22:53 +0000 (11:22 +1000)]
Create the float property if it doesn't exist.
If we don't have the float property we won't be able to use float properties
for device configuration since the drivers may not understand it.
We might still want to apply properties for client settings though.
Reported-by: Simon Thum <simon.thum@gmx.de>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Thu, 30 Apr 2009 04:50:08 +0000 (14:50 +1000)]
If there's multiple null-terminated strings in the property, print all.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Simon Thum <simon.thum@gmx.de>
Peter Hutterer [Thu, 30 Apr 2009 23:14:46 +0000 (09:14 +1000)]
The float_atom should actually be an Atom
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Thu, 30 Apr 2009 04:50:08 +0000 (14:50 +1000)]
If there's multiple null-terminated strings in the property, print all.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Julien Cristau [Mon, 20 Apr 2009 11:58:03 +0000 (13:58 +0200)]
xinput: add set-prop command
There's no reason to require the user to know the difference between
set-int-prop, set-float-prop and set-atom-prop, and to know the required
format for each integer property, since we can just ask
XGetDeviceProperty.
Signed-off-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Julien Cristau [Thu, 16 Apr 2009 16:55:46 +0000 (18:55 +0200)]
Factorize atom parsing in its own function
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Sun, 19 Apr 2009 22:28:53 +0000 (08:28 +1000)]
XSync the display before jumping in the grab code.
The grab code only handles button presses, so we need to remove all events
before (exposures, enter/leave, etc.).
Peter Hutterer [Sun, 19 Apr 2009 11:28:25 +0000 (21:28 +1000)]
Add a hunk to test XI2 sync'd grabs.
Peter Hutterer [Sun, 19 Apr 2009 11:27:40 +0000 (21:27 +1000)]
Register for exposure events and block until we're mapped.
Peter Hutterer [Sun, 19 Apr 2009 11:09:49 +0000 (21:09 +1000)]
Print event/root x/y on device events.
Peter Hutterer [Sun, 19 Apr 2009 10:33:40 +0000 (20:33 +1000)]
Actually print event_y when trying to print event_y in Enter/Leave events.
Peter Hutterer [Fri, 17 Apr 2009 22:43:43 +0000 (08:43 +1000)]
replace BYTE with an unsigned char.
Peter Hutterer [Thu, 16 Apr 2009 13:20:16 +0000 (09:20 -0400)]
Fix set-float-prop on 64-bit architectures.
Since 32-byte data on 64-bit machines must be passed in as 64-bit longs, let's
typecast around a bit.
Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
Peter Hutterer [Tue, 14 Apr 2009 13:13:15 +0000 (09:13 -0400)]
fix 64 bit issues with set-int-prop and list-props.
libX11 uses longs for 32 bit values, increasing hilarity on 64 bit machines.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Tue, 14 Apr 2009 03:54:40 +0000 (13:54 +1000)]
Fix 64 bit issues with set-int-prop.
libX11 expects longs for 32 bit numbers.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Simon Thum [Thu, 26 Mar 2009 12:52:15 +0000 (13:52 +0100)]
xinput: include device type in device list
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Simon Thum [Thu, 26 Mar 2009 14:19:47 +0000 (15:19 +0100)]
xinput: mention set-float-prop in manpage
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Sun, 5 Apr 2009 23:54:07 +0000 (09:54 +1000)]
xinput 1.4.1
Benjamin Close [Thu, 19 Feb 2009 04:09:29 +0000 (14:39 +1030)]
Error out when selecting a device by name but more than one instance of the name exists
Previously the check was in place for the duplicate name, however the first
device with the requested name was still selected regardless.
Correct this by exiting out forcing the user to select by id instead
Signed-off-by: Benjamin Close <Benjamin.Close@clearchain.com>
Peter Hutterer [Tue, 10 Mar 2009 23:52:08 +0000 (09:52 +1000)]
Print enter/leave and focus events.
Peter Hutterer [Tue, 10 Mar 2009 05:41:15 +0000 (15:41 +1000)]
Register for raw events
Peter Hutterer [Tue, 10 Mar 2009 03:23:53 +0000 (13:23 +1000)]
Change event registration a bit, using SetBit instead.
Peter Hutterer [Sun, 8 Mar 2009 07:41:23 +0000 (17:41 +1000)]
Print out hierarchy events
Peter Hutterer [Sun, 8 Mar 2009 02:25:15 +0000 (12:25 +1000)]
Print DeviceChanged events.
Peter Hutterer [Tue, 3 Mar 2009 05:44:45 +0000 (15:44 +1000)]
Add test_xi2 for xi2 testing.
Peter Hutterer [Wed, 4 Mar 2009 11:57:54 +0000 (21:57 +1000)]
If XI2 is available, list devices through XIQueryDevice.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Thu, 26 Feb 2009 06:14:21 +0000 (16:14 +1000)]
Update to new XI2 requests and sanitize the check for XI2 in configure.
Check for the actual library version, not for some random function inside the
library.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Wed, 4 Mar 2009 11:25:50 +0000 (21:25 +1000)]
Change is_xinput_present() to xinput_version().
Returns major version of XI.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Fri, 6 Mar 2009 12:13:17 +0000 (22:13 +1000)]
add xi2_find_device_id
Peter Hutterer [Thu, 26 Feb 2009 06:09:17 +0000 (16:09 +1000)]
Rip HAVE_XI2 conditional functionality out.
XI2 needs to be harder separated now.
Peter Hutterer [Thu, 26 Feb 2009 05:53:24 +0000 (15:53 +1000)]
Clean up xinput.h a bit.
All functions have to look the same anyway, so might as well use a one-line
macro to declare them.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Benjamin Close [Thu, 12 Mar 2009 11:17:53 +0000 (21:17 +1000)]
Error out when more than one instance of a name exists
Previously the check was in place for the duplicate name, however the first
device with the requested name was still selected regardless.
Correct this by exiting out forcing the user to select by id instead.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Simon Thum [Wed, 21 Jan 2009 13:09:29 +0000 (14:09 +0100)]
small fixes to the propery output
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Paulo Cesar Pereira de Andrade [Wed, 21 Jan 2009 21:35:52 +0000 (19:35 -0200)]
Correct make distcheck and sparse warnings.
Peter Hutterer [Fri, 16 Jan 2009 02:48:05 +0000 (12:48 +1000)]
xinput 1.4.0
Peter Hutterer [Thu, 15 Jan 2009 23:53:01 +0000 (09:53 +1000)]
Add set-atom-prop to set properties containing other properties.
Peter Hutterer [Thu, 15 Jan 2009 23:51:57 +0000 (09:51 +1000)]
Don't linebreak after listing a string or atom property.
Peter Hutterer [Thu, 15 Jan 2009 23:50:05 +0000 (09:50 +1000)]
Fix wrong type conversion in listing Atom properties.
Peter Hutterer [Thu, 15 Jan 2009 23:06:54 +0000 (09:06 +1000)]
Require libXi 1.2 and inputproto 1.5.
Device properties are available in a released libXi version now, so there's no
need to keep them conditional, make 1.5 mandatory.
We also have the explicit check for XI2 functions in libXi, so there's no need
to have requirements for inputproto 1.9.99.5.
Simon Thum [Mon, 12 Jan 2009 04:24:26 +0000 (14:24 +1000)]
Add set-float-prop option to set properties using floating point numbers.
Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
Sascha Hlusiak [Tue, 30 Sep 2008 15:54:08 +0000 (17:54 +0200)]
Call XSync instead XFlush to be able to handle errors
When setting properties, the program terminated successfully before any BadMatch or
BadValue could be processed. Calling XSync informs the user about errors.
Sascha Hlusiak [Tue, 30 Sep 2008 13:27:56 +0000 (15:27 +0200)]
Add --get-button-map option.
Peter Hutterer [Fri, 26 Sep 2008 04:27:41 +0000 (13:57 +0930)]
Require inputproto 1.9.99.5
Peter Hutterer [Fri, 26 Sep 2008 04:25:33 +0000 (13:55 +0930)]
Add --delete-prop option.
Peter Hutterer [Fri, 26 Sep 2008 04:21:36 +0000 (13:51 +0930)]
Use updated property events.
No more QueryDeviceProperty request.
Bryce Harrington [Sat, 30 Aug 2008 05:31:59 +0000 (15:01 +0930)]
Add --list-props, --watch-props and --set-int-prop options to man page.
Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
Peter Hutterer [Fri, 15 Aug 2008 06:08:13 +0000 (15:38 +0930)]
Require inputproto 1.9.99.4
Peter Hutterer [Fri, 15 Aug 2008 05:58:55 +0000 (15:28 +0930)]
Use XI 1.5 property events.
Peter Hutterer [Thu, 7 Aug 2008 08:22:08 +0000 (17:52 +0930)]
Don't require extension devices for button mapping.
VCK and VCP can be opened too now.
Peter Hutterer [Thu, 7 Aug 2008 08:21:34 +0000 (17:51 +0930)]
Print property values in addition to their names.
Peter Hutterer [Thu, 7 Aug 2008 08:19:48 +0000 (17:49 +0930)]
Property code: If the Atom specified was an Atom, actually use it too.
Don't ignore an atom if it has been specified with it's number instead of the
name.
Peter Hutterer [Tue, 8 Jul 2008 08:30:21 +0000 (18:00 +0930)]
Add list-props, set-int-prop and watch-props parameters.
These parameters allow modification and display of input device properties.
Peter Hutterer [Tue, 8 Jul 2008 08:31:48 +0000 (18:01 +0930)]
Remove ChangeLog, is autogenerated now anyway.
Benjamin Close [Wed, 25 Jun 2008 05:43:54 +0000 (15:13 +0930)]
Clean up the detection of XI2
Signed-off-by: Peter Hutterer <peter@cs.unisa.edu.au>
Benjamin Close [Thu, 5 Jun 2008 05:00:09 +0000 (14:30 +0930)]
Correct the check for XI2, not every shell supports ==, but they do =
Signed-off-by: Peter Hutterer <peter@cs.unisa.edu.au>
Peter Hutterer [Tue, 27 May 2008 02:03:36 +0000 (11:33 +0930)]
Test for XI2 functions in libXi, add #ifdefs to build in non-XI2 setups.
Peter Hutterer [Tue, 27 May 2008 00:46:08 +0000 (10:16 +0930)]
Use find_device_info instead of requireing device ids on the cmdline.
Peter Hutterer [Tue, 29 Apr 2008 01:50:03 +0000 (11:20 +0930)]
Use new XQueryInputVersion() request to tell the server we can do XI 2.
Peter Hutterer [Mon, 7 Apr 2008 07:54:16 +0000 (17:24 +0930)]
Merge branch 'master' into mpx
Conflicts:
src/xinput.c
(just a whitespace conflict)
Paulo Cesar Pereira de Andrade [Sun, 16 Mar 2008 22:37:17 +0000 (19:37 -0300)]
Compile warning fix.
Ansify a function without arguments.
Signed-off-by: Peter Hutterer <peter@cs.unisa.edu.au>
Paulo Cesar Pereira de Andrade [Sun, 16 Mar 2008 22:36:17 +0000 (19:36 -0300)]
Mandriva patches to xinput.
Change to src/list.c fixes a typo/oversight.
Change to configure.ac required to avoid possible error in configure step
due to "unquoted" version test.
Signed-off-by: Peter Hutterer <peter@cs.unisa.edu.au>
Peter Hutterer [Mon, 18 Feb 2008 06:47:39 +0000 (17:17 +1030)]
Modify to work with the changes in the XChangeDeviceHierarchy API.
Peter Hutterer [Wed, 13 Feb 2008 06:05:18 +0000 (16:35 +1030)]
Update XiSelectEvent API usage, has device argument now.
Peter Hutterer [Tue, 15 Jan 2008 10:02:47 +0000 (20:32 +1030)]
Remove deprecated imakefile.
Peter Hutterer [Tue, 15 Jan 2008 10:02:28 +0000 (20:32 +1030)]
Replace Fred's name in the main license text with a general "The authors".
Makes it less messy to add authors.
Frederic Lepied's permission obtained via email.
Julien Cristau [Thu, 10 Jan 2008 19:19:55 +0000 (20:19 +0100)]
Change xinput_CFLAGS to AM_CFLAGS to clear automake-1.10 warning
src/Makefile.am:27: compiling `buttonmap.c' with per-target flags requires `AM_PROG_CC_C_O' in `configure.ac'
Also remove -lm from xinput_LDADD, as it isn't needed.
Philip Langdale [Thu, 10 Jan 2008 02:25:27 +0000 (18:25 -0800)]
Add ChangeLog rule.
Philip Langdale [Thu, 10 Jan 2008 02:24:28 +0000 (18:24 -0800)]
Update .gitignore
Philip Langdale [Thu, 10 Jan 2008 02:22:27 +0000 (18:22 -0800)]
Update news for 1.3.0 release.
Philip Langdale [Thu, 10 Jan 2008 02:17:43 +0000 (18:17 -0800)]
Add a warning when the user specifies an ambiguous device name
suggesting that they use the device id instead.
Philip Langdale [Thu, 10 Jan 2008 02:16:54 +0000 (18:16 -0800)]
Update man page.
Philip Langdale [Thu, 10 Jan 2008 02:14:12 +0000 (18:14 -0800)]
Update documentation
Philip Langdale [Thu, 10 Jan 2008 02:08:37 +0000 (18:08 -0800)]
Make dependency on inputproto >= 1.4 explicit.
Peter Hutterer [Mon, 7 Jan 2008 08:26:54 +0000 (18:56 +1030)]
Don't overwrite daemon with argc.
This must be a leftover from my excessive out-of-order cherry-picking. Turns
out when --short was supplied we'd set daemon to argc, causing a loop waiting
for an event that'd never come. A bit like Godot actually.
Peter Hutterer [Thu, 20 Dec 2007 01:59:27 +0000 (12:29 +1030)]
Add support to set the client pointer.
Couple of whitespace changes too.
Peter Hutterer [Thu, 20 Dec 2007 01:57:32 +0000 (12:27 +1030)]
Register for DeviceClassesChangedEvents, reprint the list when we get one.
Only in list --loop mode though.
Peter Hutterer [Thu, 20 Dec 2007 01:51:34 +0000 (12:21 +1030)]
Add --loop to "xinput list". Re-prints devices when hierarchy changes.
Peter Hutterer [Thu, 8 Nov 2007 04:23:18 +0000 (14:53 +1030)]
Add support for device hierarchy changes.
Peter Hutterer [Sun, 18 Nov 2007 02:06:32 +0000 (12:36 +1030)]
Print out attachment of slave devices.
Peter Hutterer [Thu, 20 Dec 2007 01:36:33 +0000 (12:06 +1030)]
Remove leftover trailing whitespaces.
Peter Hutterer [Thu, 20 Dec 2007 01:22:41 +0000 (11:52 +1030)]
Add --short argument to list. Only prints name and ID.
Peter Hutterer [Thu, 20 Dec 2007 01:15:11 +0000 (11:45 +1030)]
Support GNU style options the dodgy way.
Simply removing all preceding "-" from the function name before running the
usual comparison.
Peter Hutterer [Mon, 26 Nov 2007 23:11:56 +0000 (09:41 +1030)]
Remove a few trailing whitespaces.
Peter Hutterer [Mon, 3 Dec 2007 02:10:03 +0000 (12:40 +1030)]
Remove trailing whitespaces (buttonmap.c)
Peter Hutterer [Thu, 15 Nov 2007 05:51:32 +0000 (16:21 +1030)]
Let autoconf substitute the VERSION.
Philip Langdale [Thu, 8 Nov 2007 04:25:41 +0000 (14:55 +1030)]
Expand check to support XExtensionKeyboard/Pointer.
Search for PtrFeedbackClass instead of assuming it's the first class in the
list.
Peter Hutterer [Thu, 8 Nov 2007 03:53:40 +0000 (14:23 +1030)]
Death to RCS tags, remove compiler warning, get version from config.h.
Peter Hutterer [Thu, 8 Nov 2007 03:46:34 +0000 (14:16 +1030)]
Autotool the lot.
Peter Hutterer [Wed, 7 Nov 2007 23:51:21 +0000 (10:21 +1030)]
xinput as straight from the tarball.