Commit Graph

67 Commits

Author SHA1 Message Date
Peter Hutterer
e92c9f0bad man: fix wrong option name
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-12-01 11:45:40 +10:00
Peter Hutterer
dda952fafe Leave the XKB defaults up to the server
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-12-01 11:44:11 +10:00
Peter Hutterer
17302c3352 Allow disabling scroll methods
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-12-01 11:31:30 +10:00
Peter Hutterer
7e3926f2b7 Split sendevent modes property into "available" and "current"
Clients need to know which methods are available, not just which one
is currently set. Export bitmask config options as two properties,
one read-only named "... Available" and one set-able one named "... Enabled"

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-12-01 11:31:30 +10:00
Peter Hutterer
9ad23dd1cb Split scroll methods property into "available" and "current"
Clients need to know which methods are available, not just which one is
currently set. Export bitmask config options as two properties, one read-only
named "... Available" and one set-able one named "... Enabled"

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-11-28 09:14:24 +10:00
Peter Hutterer
7b2dbdc224 xf86-input-libinput 0.3.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
xf86-input-libinput-0.3.0
2014-11-24 17:43:23 +10:00
Peter Hutterer
eddc8cb1b2 Don't process events from devices that got removed already
If the driver doesn't have a pInfo reference anymore for a libinput device,
don't bother processing events, the device was already removed. This was
triggered by the libevdev test suite which adds/removes devices very quickly.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-11-24 11:50:48 +10:00
Peter Hutterer
95597d8070 Drop double empty lines
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-11-24 11:50:48 +10:00
Peter Hutterer
a323e221a7 Use the button conversion helper for normal button events too
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-11-24 11:01:25 +10:00
Peter Hutterer
6385974e4d Add support for changing the button-scrolling button
This currently exposes the libinput button name, which isn't ideal. Needs to
be switched to X button numbers.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-11-24 11:01:25 +10:00
Peter Hutterer
439a244ae7 Add support for switching scroll methods
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-11-24 11:00:44 +10:00
Peter Hutterer
4a049ad6f8 Add support for left-handed button orientation
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-11-24 10:50:24 +10:00
Peter Hutterer
ef948537e1 xf86-input-libinput 0.2.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
xf86-input-libinput-0.2.0
2014-11-19 14:54:02 +10:00
Peter Hutterer
576da9db26 Hook up the libinput log handler
Let the server filter based on the verbosity levels in the server, so map
ERROR to -1 (always), INFO to 3 (default verbosity) and DEBUG to 10.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-11-19 14:40:58 +10:00
Peter Hutterer
2eb01498bd Add an explanatory comment for the disabled ptraccel
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-11-19 14:40:58 +10:00
Peter Hutterer
a4fb161c3e Allow re-enabling of the sendevents configuration
When re-enabling the device, the mode is 0.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-11-19 14:40:58 +10:00
Peter Hutterer
15291e53b7 Update the README
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-11-19 14:40:58 +10:00
Peter Hutterer
d9c212d266 Init the right number of buttons for pointer devices
This only makes room for the highest button number present on the device, it
doesn't cater for devices with 'holes'. i.e. if a device has only BTN_BACK, it
will initialize buttons for all below too.

Which is also evdev's current behavior.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-11-19 14:40:58 +10:00
Peter Hutterer
d48f437aa9 Replace hardcoded button number with one we can calculate
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-11-19 14:39:50 +10:00
Peter Hutterer
84f301f7e3 Fix loop condition
Use the passed-in value, not the global constant.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-11-19 14:39:50 +10:00
Peter Hutterer
6f06b1dd1d Set the XI type for the device
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-11-18 13:37:39 +10:00
Peter Hutterer
fdbf7eaf4b man: add missing Makefile.am 2014-10-05 22:48:30 +10:00
Peter Hutterer
2b6c485117 Store the data in the local options, then apply all at once
Less code this way, though if we somehow sneak in a bad option we get the
error for it every time we update any property.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-09-26 14:42:31 +10:00
Peter Hutterer
246200cbdc Apply all config options on DEVICE_ON
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-09-26 14:36:10 +10:00
Peter Hutterer
fb41458a93 Expose all config options as xorg.conf options
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-09-26 14:36:10 +10:00
Peter Hutterer
d9d2e9a501 Add a man page
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-09-26 14:25:20 +10:00
Peter Hutterer
0a58edd3f6 Add a couple of general properties that all drivers should support
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-09-26 14:25:20 +10:00
Peter Hutterer
8d6019c786 Expose properties for the various configuration settings.
The property support isn't ideal, the server relies on the driver to check
first if a setting is possible, applying the setting itself cannot fail.
Thus we can't just check the libinput config status code, which matters mostly
in the sendevents property where we simply check that only a single bit is set
and that the supported modes are equal or more to the requested mode.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-09-26 14:23:28 +10:00
Peter Hutterer
532fe35522 Require libinput 0.6
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-09-24 15:59:00 +10:00
Peter Hutterer
65a40e2cfc Add a rudimentary README
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-08-07 10:04:42 +10:00
Peter Hutterer
7522884a9e Drop some mention of evdev
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-08-07 09:48:46 +10:00
Peter Hutterer
ef5f0295e7 Ship an example config snippet
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-08-07 09:48:32 +10:00
Peter Hutterer
adb4963109 Replace AC_PROG_LIBTOOL with LT_INIT
Former is deprecated in favor of the latter.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-07-24 16:55:44 +10:00
Peter Hutterer
e8c4bbceee xf86-input-libinput 0.1.2
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
xf86-input-libinput-0.1.2
2014-07-24 10:18:07 +10:00
Peter Hutterer
e1a9c82dbc Drop two comments mentioning evdev
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-07-24 10:18:07 +10:00
Peter Hutterer
fe81ad3ae2 Drop the pkgconfig file
We don't export anything, so need to ship it

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-07-24 10:14:15 +10:00
Peter Hutterer
6a69462359 Let libinput take care of pointer acceleration
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-07-01 11:19:06 +10:00
Peter Hutterer
2f03f67426 xf86-input-libinput 0.1.1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
xf86-input-libinput-0.1.1
2014-06-26 15:36:49 +10:00
Peter Hutterer
6d634262fd Fix distcheck
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-06-26 15:36:25 +10:00
Peter Hutterer
6f91b84fd3 Add COPYING file
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-06-26 15:35:44 +10:00
Peter Hutterer
29fa1a6637 xf86-input-libinput 0.1.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
xf86-input-libinput-0.1.0
2014-06-26 15:11:30 +10:00
Peter Hutterer
9e664af686 Use the new libinput_ref/unref instead of manual counting.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-06-26 15:11:30 +10:00
Peter Hutterer
c28d90ba69 Fix for libinput 0.4.0 API changes
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-06-25 14:43:16 +10:00
Peter Hutterer
3b2e3e6f9e Require libinput 0.3.0
And add fix for the renamed button state enum

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-06-10 09:06:17 +10:00
Jonas Ådahl
e7f7ed9303 Use floating point instead of fixed point numbers
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-06-10 09:04:10 +10:00
Peter Hutterer
163b244ec5 Fix scrolling axis number
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-06-10 09:03:28 +10:00
Peter Hutterer
102c126c02 Delete the input device reference on uninit
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-04-04 15:19:54 +10:00
Peter Hutterer
e114d517b5 Unset the device user data on device off
Once we turn the device off, we may still get events from it but the pInfo
struct may not be valid anymore to process those events.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-04-04 15:18:43 +10:00
Peter Hutterer
1ab6637b56 zero out the valuator mask before sending touch events
otherwise we might re-submit values from other events

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-03-28 09:09:02 +10:00
Peter Hutterer
16796d08d8 Switch to ValuatorMasks for motion and axis events
Allows us to use subpixel data, not that the server does a good job with it.
But at least for scrolling we should now be able to scroll by  small amounts
too.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-03-28 08:46:44 +10:00