]> diplodocus.org Git - xorg-xinput/log
xorg-xinput
16 years agoAdd Peter and Red Hat's copyright notices and licenses to COPYING
Julien Cristau [Sun, 29 Nov 2009 10:04:57 +0000 (11:04 +0100)]
Add Peter and Red Hat's copyright notices and licenses to COPYING

16 years agoMakefile.am: add ChangeLog and INSTALL on MAINTAINERCLEANFILES
Gaetan Nadon [Thu, 26 Nov 2009 14:19:54 +0000 (09:19 -0500)]
Makefile.am: add ChangeLog and INSTALL on MAINTAINERCLEANFILES

Now that the INSTALL file is generated.
Allows running make maintainer-clean.

16 years agoINSTALL, NEWS, README or AUTHORS files are missing/incorrect #24206
Gaetan Nadon [Wed, 28 Oct 2009 18:09:08 +0000 (14:09 -0400)]
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.

16 years agoDeploy the new XORG_DEFAULT_OPTIONS #24242
Gaetan Nadon [Tue, 27 Oct 2009 19:07:25 +0000 (15:07 -0400)]
Deploy the new XORG_DEFAULT_OPTIONS #24242

This macro aggregate a number of existing macros that sets commmon
X.Org components configuration options. It shields the configuration file from
future changes.

16 years agoMakefile.am: ChangeLog not required: EXTRA_DIST or *CLEANFILES #24432
Gaetan Nadon [Tue, 27 Oct 2009 02:08:39 +0000 (22:08 -0400)]
Makefile.am: ChangeLog not required: EXTRA_DIST or *CLEANFILES #24432

ChangeLog filename is known to Automake and requires no further
coding in the makefile.

16 years ago.gitignore: use common defaults with custom section # 24239
Gaetan Nadon [Thu, 22 Oct 2009 16:34:15 +0000 (12:34 -0400)]
.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.

16 years agoThis is not a GNU project, so declare it foreign.
Jeremy Huddleston [Wed, 21 Oct 2009 19:47:20 +0000 (12:47 -0700)]
This is not a GNU project, so declare it foreign.

On Wed, 2009-10-21 at 13:36 +1000, Peter Hutterer wrote:
> On Tue, Oct 20, 2009 at 08:23:55PM -0700, Jeremy Huddleston wrote:
> > I noticed an INSTALL file in xlsclients and libXvMC today, and it
> > was quite annoying to work around since 'autoreconf -fvi' replaces
> > it and git wants to commit it.  Should these files even be in git?
> > Can I nuke them for the betterment of humanity and since they get
> > created by autoreconf anyways?
>
> See https://bugs.freedesktop.org/show_bug.cgi?id=24206

As an interim measure, replace AM_INIT_AUTOMAKE([dist-bzip2]) with
AM_INIT_AUTOMAKE([foreign dist-bzip2]). This will prevent the generation
of the INSTALL file. It is also part of the 24206 solution.

Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org>
16 years agoxinput 1.5.0
Peter Hutterer [Tue, 13 Oct 2009 05:25:19 +0000 (15:25 +1000)]
xinput 1.5.0

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
16 years agoClean up --version, don't require a DISPLAY and display the server version too.
Peter Hutterer [Fri, 9 Oct 2009 05:28:34 +0000 (15:28 +1000)]
Clean up --version, don't require a DISPLAY and display the server version too.

version.c was removed, seemed a bit excessive for the 20 lines of code.
--version is integrated separate from the other commands now, checked before
opening the display. xinput now prints its own version in all cases, even if
the display is unavailable. If the display is available, it prints the
server version too. Example output:

$> xinput --version
xinput version 1.4.99.3
XI version on server: 2.0

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
16 years agoman: clean up the man page.
Peter Hutterer [Fri, 9 Oct 2009 05:07:30 +0000 (15:07 +1000)]
man: clean up the man page.

Several changes to the man page to tidy it up a bit:
- RCS tag removed
- synopsis shortened, OPTIONS section added instead
- "xinput" dropped before the option descriptions, options in manpage
  prefixed with '--'.
- device_name replaced with just device, since it may be a deviceid.
- Removed references to XI man page calls that some options use, it really
  doesn't matter to users what the underlying Xlib call is.
- mark set-int-prop and set-float-prop as deprecated in the man page.
- add --test_xi2 flag
- Added a few more authors.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Alan Coopersmith <alan.coopersmith@sun.com>
16 years agoRework 'xinput list' code
Thomas Jaeger [Wed, 7 Oct 2009 17:05:15 +0000 (13:05 -0400)]
Rework 'xinput list' code

* Drop the questionable --loop option
* Add a --long option (opposite of --short)
* Make --short the default if no device argument is given
* XI2: Make it possible to query a single device

Signed-off-by: Thomas Jaeger <ThJaeger@gmail.com>
squashed in a man page update for --short and --long.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
16 years agoBump to 1.4.99.3
Peter Hutterer [Thu, 24 Sep 2009 00:45:54 +0000 (10:45 +1000)]
Bump to 1.4.99.3

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
16 years agoUse __xorgversion__ instead of RCS $Date in man page header/footer
Alan Coopersmith [Tue, 22 Sep 2009 00:30:55 +0000 (17:30 -0700)]
Use __xorgversion__ instead of RCS $Date in man page header/footer

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
16 years agoUse do_set_prop for set_{atom,float,int}_prop
Julien Cristau [Tue, 15 Sep 2009 15:37:34 +0000 (17:37 +0200)]
Use do_set_prop for set_{atom,float,int}_prop

Signed-off-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
16 years agoset-prop: add --type={atom,float,int} and --format={8,16,32} options
Julien Cristau [Tue, 15 Sep 2009 15:55:35 +0000 (17:55 +0200)]
set-prop: add --type={atom,float,int} and --format={8,16,32} options

Allows creating new properties or modifying the type and format of
existing ones.

Signed-off-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
16 years agoAdd a format and type argument to the set_prop functions
Julien Cristau [Tue, 15 Sep 2009 15:33:54 +0000 (17:33 +0200)]
Add a format and type argument to the set_prop functions

This will allow the addition of command-line options to set format and
type, and the reuse of this code for the set-{atom,float,int}-prop
paths.

Signed-off-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
16 years agoRequire xorg-macros 1.3 for XORG_DEFAULT_OPTIONS.
Peter Hutterer [Wed, 16 Sep 2009 02:29:26 +0000 (12:29 +1000)]
Require xorg-macros 1.3 for XORG_DEFAULT_OPTIONS.

16 years agotest_xi2: Print the key repeat flag if it is set.
Peter Hutterer [Fri, 21 Aug 2009 05:56:19 +0000 (15:56 +1000)]
test_xi2: Print the key repeat flag if it is set.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
16 years agoBump to 1.4.99.2
Peter Hutterer [Mon, 3 Aug 2009 05:59:16 +0000 (15:59 +1000)]
Bump to 1.4.99.2

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
16 years agotest-xi2: Update to keycode grabs instead of keysym grabs.
Peter Hutterer [Tue, 21 Jul 2009 06:20:03 +0000 (16:20 +1000)]
test-xi2: Update to keycode grabs instead of keysym grabs.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
16 years agoPrint XINotifyPassiveGrab detail in enter events too.
Peter Hutterer [Thu, 16 Jul 2009 06:14:01 +0000 (16:14 +1000)]
Print XINotifyPassiveGrab detail in enter events too.

16 years agotest_xi: Print deviceid for enter events too
Peter Hutterer [Tue, 14 Jul 2009 06:27:36 +0000 (16:27 +1000)]
test_xi: Print deviceid for enter events too

16 years agoUse XI2 defines for enter/leave modes and detail.
Peter Hutterer [Tue, 14 Jul 2009 06:13:48 +0000 (16:13 +1000)]
Use XI2 defines for enter/leave modes and detail.

Doesn't matter much since they are the same as the core ones anyway, but
nicer for consistency.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
16 years agoAdjust to new, split-up raw event types.
Peter Hutterer [Mon, 13 Jul 2009 06:05:25 +0000 (16:05 +1000)]
Adjust to new, split-up raw event types.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
16 years agotest_xi2: Plug memory leak with XGetAtomName.
Peter Hutterer [Sun, 12 Jul 2009 23:18:35 +0000 (09:18 +1000)]
test_xi2: Plug memory leak with XGetAtomName.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
16 years agotest_xi2: Update to use cookie events - require libXi 1.2.99.2
Peter Hutterer [Sun, 12 Jul 2009 23:15:49 +0000 (09:15 +1000)]
test_xi2: Update to use cookie events - require libXi 1.2.99.2

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
16 years agoPlug memory leak from XGetAtomName.
Peter Hutterer [Tue, 30 Jun 2009 06:18:20 +0000 (16:18 +1000)]
Plug memory leak from XGetAtomName.

16 years agoObtain the XInput opcode and check that GenericEvents are actually XI events
Benjamin Close [Wed, 24 Jun 2009 02:25:00 +0000 (11:55 +0930)]
Obtain the XInput opcode and check that GenericEvents are actually XI events

Signed-off-by: Benjamin Close <Benjamin.Close@clearchain.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
16 years agotest_xi2: don't map the window before selecting for events.
Peter Hutterer [Wed, 24 Jun 2009 00:30:45 +0000 (10:30 +1000)]
test_xi2: don't map the window before selecting for events.

Mapping the window before selecting for XI2 events leaves some events out
(e.g. enter events if the pointer is already in the area where the window is
being mapped).

Reported-by: Thomas Jaeger
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
16 years agotest_xi2: use %#x alternative printf format.
Peter Hutterer [Wed, 24 Jun 2009 00:29:12 +0000 (10:29 +1000)]
test_xi2: use %#x alternative printf format.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
16 years agoremove-master: document possible return modes in --help
Thomas Jaeger [Tue, 23 Jun 2009 16:49:56 +0000 (12:49 -0400)]
remove-master: document possible return modes in --help

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
16 years agoFix --help output for create-master and remove-master.
Peter Hutterer [Tue, 23 Jun 2009 03:26:56 +0000 (13:26 +1000)]
Fix --help output for create-master and remove-master.

Missing <> added. All parameters in the --help output have surrounding <> if
the parameter is something the user has to substitute.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
16 years agoBump to 1.4.99.1
Peter Hutterer [Sat, 20 Jun 2009 07:59:59 +0000 (17:59 +1000)]
Bump to 1.4.99.1

We've had a 1.4 branch for a while now, this bump is way overdue.

16 years agoreattach: Default to return to VCP/VCK when returnMode is AttachToMaster
Thomas Jaeger [Sun, 14 Jun 2009 17:58:39 +0000 (13:58 -0400)]
reattach: Default to return to VCP/VCK when returnMode is AttachToMaster

Signed-off-by: Thomas Jaeger <ThJaeger@gmail.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
16 years agotest-xi2: Report correct event coordinates
Thomas Jaeger [Tue, 16 Jun 2009 01:45:32 +0000 (21:45 -0400)]
test-xi2: Report correct event coordinates

Signed-off-by: Thomas Jaeger <ThJaeger@gmail.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
16 years agotest-xi2: Use standard macros instead of BitIsOn/SetBit
Thomas Jaeger [Tue, 16 Jun 2009 01:37:56 +0000 (21:37 -0400)]
test-xi2: Use standard macros instead of BitIsOn/SetBit

Signed-off-by: Thomas Jaeger <ThJaeger@gmail.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
16 years agoRequire inputproto 1.9.99.12
Peter Hutterer [Wed, 17 Jun 2009 11:23:17 +0000 (21:23 +1000)]
Require inputproto 1.9.99.12

16 years agoPrint the valuator value for absolute axes.
Peter Hutterer [Wed, 17 Jun 2009 11:23:06 +0000 (21:23 +1000)]
Print the valuator value for absolute axes.

16 years agoPrint button and valuator labels when listing a device.
Peter Hutterer [Wed, 17 Jun 2009 11:22:23 +0000 (21:22 +1000)]
Print button and valuator labels when listing a device.

16 years agoPrint button state when listing XI2 devices.
Peter Hutterer [Mon, 15 Jun 2009 04:10:30 +0000 (14:10 +1000)]
Print button state when listing XI2 devices.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
16 years agoPrint the sourceid when listing device classes.
Peter Hutterer [Fri, 12 Jun 2009 06:31:02 +0000 (16:31 +1000)]
Print the sourceid when listing device classes.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
16 years agoUse the XI2 class defines for listing device classes in XI2 mode.
Peter Hutterer [Fri, 12 Jun 2009 06:29:37 +0000 (16:29 +1000)]
Use the XI2 class defines for listing device classes in XI2 mode.

Purely cosmetic change, the values are the same anyway.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
16 years agoFix build errors introduced by inputproto 1.9.99.11.
Peter Hutterer [Fri, 12 Jun 2009 05:47:02 +0000 (15:47 +1000)]
Fix build errors introduced by inputproto 1.9.99.11.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
16 years agoxi2 test: add two missing breaks.
Peter Hutterer [Wed, 3 Jun 2009 02:57:10 +0000 (12:57 +1000)]
xi2 test: add two missing breaks.

Printing a hierarchy event would always print only "master keyboard" or
"slave keyboard", never pointers.

16 years agotest-xi2: fix modifiers for XIGrabButton call
Thomas Jaeger [Fri, 29 May 2009 23:23:04 +0000 (19:23 -0400)]
test-xi2: fix modifiers for XIGrabButton call

Signed-off-by: Thomas Jaeger <ThJaeger@gmail.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
16 years agoRemove superfluous dev assignment.
Benjamin Close [Thu, 28 May 2009 08:44:47 +0000 (18:44 +1000)]
Remove superfluous dev assignment.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
16 years agoMerge branch 'master' into xi2
Peter Hutterer [Tue, 26 May 2009 21:34:32 +0000 (07:34 +1000)]
Merge branch 'master' into xi2

16 years agoPrint empty properties as <no items>.
Peter Hutterer [Tue, 26 May 2009 21:33:31 +0000 (07:33 +1000)]
Print empty properties as <no items>.

16 years agoPrint empty XI2 properties as <no items>
Peter Hutterer [Tue, 26 May 2009 21:33:52 +0000 (07:33 +1000)]
Print empty XI2 properties as <no items>

16 years agoPrint empty properties as <no items>.
Peter Hutterer [Tue, 26 May 2009 21:33:31 +0000 (07:33 +1000)]
Print empty properties as <no items>.

16 years agoPrint None properties in XI2 mode too.
Peter Hutterer [Wed, 20 May 2009 02:11:07 +0000 (12:11 +1000)]
Print None properties in XI2 mode too.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
16 years agoMerge branch 'master' into xi2
Peter Hutterer [Wed, 20 May 2009 02:10:44 +0000 (12:10 +1000)]
Merge branch 'master' into xi2

16 years agoDeal with None atoms.
Peter Hutterer [Wed, 20 May 2009 02:02:31 +0000 (12:02 +1000)]
Deal with None atoms.

An atom may in some cases be 0 (None). Deal with this instead of failing with
BadAtom values.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
16 years agoPrint floating slaves in XI2 list mode.
Peter Hutterer [Tue, 19 May 2009 05:28:16 +0000 (15:28 +1000)]
Print floating slaves in XI2 list mode.

Floating slaves are always printed last.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
16 years agoUpdate to new inputproto and libXi naming conventions.
Peter Hutterer [Wed, 13 May 2009 04:20:58 +0000 (14:20 +1000)]
Update to new inputproto and libXi naming conventions.

Require inputproto 1.9.99.9.

16 years agoMerge branch 'master' into xi2
Peter Hutterer [Fri, 8 May 2009 05:15:45 +0000 (15:15 +1000)]
Merge branch 'master' into xi2

Conflicts:
src/xinput.h

16 years agoUpdate to new inputproto defines.
Peter Hutterer [Fri, 8 May 2009 04:21:17 +0000 (14:21 +1000)]
Update to new inputproto defines.

16 years agoupdate test_xi2 with a few more tests.
Peter Hutterer [Thu, 30 Apr 2009 06:53:05 +0000 (16:53 +1000)]
update test_xi2 with a few more tests.

16 years agoXCloseDisplay when we're done.
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>
16 years agoClean up xinput.h a bit
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>
16 years agoAdd support for XI2 property requests.
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.

16 years agoGet the XIDeviceInfo instead of just the id.
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>
16 years agoXCloseDisplay when we're done.
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>
16 years agoRemove one more unnecessary ifdef.
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>
16 years agoMerge branch 'master' into xi2
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

16 years agoClean up xinput.h a bit
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>
16 years agoCreate the float property if it doesn't exist.
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>
16 years agoIf there's multiple null-terminated strings in the property, print all.
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>
16 years agoThe float_atom should actually be an Atom
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>
16 years agoIf there's multiple null-terminated strings in the property, print all.
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>
16 years agoxinput: add set-prop command
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>
17 years agoFactorize atom parsing in its own function
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>
17 years agoXSync the display before jumping in the grab code.
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.).

17 years agoAdd a hunk to test XI2 sync'd grabs.
Peter Hutterer [Sun, 19 Apr 2009 11:28:25 +0000 (21:28 +1000)]
Add a hunk to test XI2 sync'd grabs.

17 years agoRegister for exposure events and block until we're mapped.
Peter Hutterer [Sun, 19 Apr 2009 11:27:40 +0000 (21:27 +1000)]
Register for exposure events and block until we're mapped.

17 years agoPrint event/root x/y on device events.
Peter Hutterer [Sun, 19 Apr 2009 11:09:49 +0000 (21:09 +1000)]
Print event/root x/y on device events.

17 years agoActually print event_y when trying to print event_y in Enter/Leave 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.

17 years agoreplace BYTE with an unsigned char.
Peter Hutterer [Fri, 17 Apr 2009 22:43:43 +0000 (08:43 +1000)]
replace BYTE with an unsigned char.

17 years agoFix set-float-prop on 64-bit architectures.
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>
17 years agofix 64 bit issues with set-int-prop and list-props.
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>
17 years agoFix 64 bit issues with set-int-prop.
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>
17 years agoxinput: include device type in device list
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>
17 years agoxinput: mention set-float-prop in manpage
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>
17 years agoxinput 1.4.1
Peter Hutterer [Sun, 5 Apr 2009 23:54:07 +0000 (09:54 +1000)]
xinput 1.4.1

17 years agoError out when selecting a device by name but more than one instance of the name...
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>
17 years agoPrint enter/leave and focus events.
Peter Hutterer [Tue, 10 Mar 2009 23:52:08 +0000 (09:52 +1000)]
Print enter/leave and focus events.

17 years agoRegister for raw events
Peter Hutterer [Tue, 10 Mar 2009 05:41:15 +0000 (15:41 +1000)]
Register for raw events

17 years agoChange event registration a bit, using SetBit instead.
Peter Hutterer [Tue, 10 Mar 2009 03:23:53 +0000 (13:23 +1000)]
Change event registration a bit, using SetBit instead.

17 years agoPrint out hierarchy events
Peter Hutterer [Sun, 8 Mar 2009 07:41:23 +0000 (17:41 +1000)]
Print out hierarchy events

17 years agoPrint DeviceChanged events.
Peter Hutterer [Sun, 8 Mar 2009 02:25:15 +0000 (12:25 +1000)]
Print DeviceChanged events.

17 years agoAdd test_xi2 for xi2 testing.
Peter Hutterer [Tue, 3 Mar 2009 05:44:45 +0000 (15:44 +1000)]
Add test_xi2 for xi2 testing.

17 years agoIf XI2 is available, list devices through XIQueryDevice.
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>
17 years agoUpdate to new XI2 requests and sanitize the check for XI2 in configure.
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>
17 years agoChange is_xinput_present() to xinput_version().
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>
17 years agoadd xi2_find_device_id
Peter Hutterer [Fri, 6 Mar 2009 12:13:17 +0000 (22:13 +1000)]
add xi2_find_device_id

17 years agoRip HAVE_XI2 conditional functionality out.
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.

17 years agoClean up xinput.h a bit.
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>
17 years agoError out when more than one instance of a name exists
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>
17 years agosmall fixes to the propery output
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>
17 years agoCorrect make distcheck and sparse warnings.
Paulo Cesar Pereira de Andrade [Wed, 21 Jan 2009 21:35:52 +0000 (19:35 -0200)]
Correct make distcheck and sparse warnings.