summaryrefslogtreecommitdiff
path: root/src/synproto.h
AgeCommit message (Collapse)Author
2024-08-02OpenBSD wsconscomm support from shadchin@HEADobsdMatthieu Herrb
2014-08-29Include xorg-server.h to fix build errors on newest glibcPeter Hutterer
In file included from /usr/include/string.h:634:0, from /usr/include/xorg/os.h:53, from /usr/include/xorg/misc.h:115, from /usr/include/xorg/xf86str.h:37, from /usr/include/xorg/xf86Xinput.h:54, from synproto.h:36, from synproto.c:24: /usr/include/xorg/os.h:579:1: error: expected identifier or '(' before '__extension__' strndup(const char *str, size_t n); See http://lists.freedesktop.org/archives/xorg-devel/2014-July/043070.html Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-04-09Comment the touch statesPeter Hutterer
Everytime I look at this I get confused about OPEN_EMPTY vs EMPTY. Let's fix that. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2014-03-11synaptics: Add support for server managed fdsHans de Goede
Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-05-31check for HAVE_CONFIG_H before including config.hPeter Hutterer
No real effect, just for correctness. Plus, move the include directive up to be the first include. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
2012-05-10Rename force_empty parameter to set_slot_emptyPeter Hutterer
Original version of d13e83b921a398b9472b07874cf5061c8a0ea6a6 had 'force_empty', the rename only covered the definition, not the declaration of the function. No functional changes. Reported-by: Nicola Soranzo <nsoranzo@tiscali.it> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-05-10Require xserver 1.12 and inputproto 2.2Peter Hutterer
This drops conditional compilation of multitouch support, smooth scrolling support and old ABIs. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Chase Douglas <chase.douglas@canonical.com>
2012-05-10Indent consistentlyPeter Hutterer
x-indent-all.sh from xorg/util/modular as of c2d630fab65dbe3409af3947f6f442782ddb026f Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
2012-05-02Force SLOTSTATE_EMPTY on DeviceOffPeter Hutterer
SLOTSTATE_OPEN_EMPTY on resume leads to erroneously detected touches. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
2012-05-01Reset all hardware state on DEVICE_OFF (#49161)Peter Hutterer
Reset all state on DeviceOff to avoid stuck buttons on resume. X.Org Bug 49161 <http://bugs.freedesktop.org/show_bug.cgi?id=49161> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
2012-03-22Keep track of which touch slots are openChase Douglas
This change adds a new touch slot state that denotes when the slot is open but does not have any new data to report. Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-03-14Add soft button areas propertyChase Douglas
Some clickpad devices have button areas painted on them. Set this property to the area of the right and middle buttons to enable proper click actions when clicking in the areas. Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-03-14Add cumulative_d{x,y} to SynapticsHwStateChase Douglas
These values will be used for clickpad press and drag with two fingers. While the clickpad button is not pressed, cumulative_d{x,y} will match x and y values. Once the clickpad button is pressed, cumulative_d{x,y} will be updated with the relative motion of each active touch on the touchpad. This allows for dragging with one finger while another finger stays stationary holding the clickpad button down. This is an easier and less latent approach than trying to guess which touch was the "dragging" touch. [fixed build error for mt off] Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-03-14Add a BTN_EMULATED_FLAG to mark emulated buttons on clickfingersPeter Hutterer
And when copying the hardware state, don't copy those buttons that were set through emulation. This is a temporary fix only, we should add new fields to the hw struct that represent the various features as they are enabled/disabled and then treat them accordingly. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
2012-02-11Move X touch event processing into synaptics.cChase Douglas
Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-02-11Add touch valuator mask to hw state structureChase Douglas
Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-02-10Introduce SynapticsCopyHwState functionChase Douglas
Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-02-10Allocate SynapticsPrivate.comm->hwStateChase Douglas
This is needed for when SynapticsHwState can't be allocated on the stack. Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-02-10Introduce SynapticsHwStateAlloc() and SynapticsHwStateFree()Chase Douglas
Put them in a new file so eventcomm-test can access them. Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-08-29On/Off hooks to return boolean so we can bail out of the callerAlexandr Shadchin
Signed-off-by: Alexandr Shadchin <Alexandr.Shadchin@gmail.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-08-25Use CARD32 for timestampsDaniel Stone
As GetTimeInMillis() returns a CARD32, switch every timestamp usage to follow. Signed-off-by: Daniel Stone <daniel@fooishbar.org> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-04-04Don't autoprobe for devices when Option Device is set.Peter Hutterer
If only Option Device is set but no protocol, the code calls into AutoDevProbe. eventcomm (the only backend with an AutoDevProbe) then runs through all /dev/input/event devices and takes the first one it can find. If two touchpads are connected on a system, this may cause the same touchpad to be added twice and the other one not at all - even though the device path is specified. (This can only happen when the event device is not grabbed, otherwise the grabcheck prevents the touchpad from being added twice) Pass the device option into AutoDevProbe and check that device first. If it is a touchpad, finish with success. If it isn't, fail AutoDevProbe. Introduced in dce6006f6a851be4147e16731caa453dd0d1ec1c. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> CC: Alexandr Shadchin <alexandr.shadchin@gmail.com> Reviewed-by: Chris Bagwell <chris@cnpbagwell.com>
2011-03-01Now ps2comm and alpscomm backend optionalAlexandr Shadchin
Signed-off-by: Alexandr Shadchin <Alexandr.Shadchin@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-03-01Rewrite mechanisn to detect Protocol and DeviceAlexandr Shadchin
Made SetDeviceAndProtocol() does not depend on the protocols, it will make it easier to add new backend. New behavior SetDeviceAndProtocol: 1) If not set Device or Protocol, then try AutoDevProbe 2) Otherwise, look for the appropriate protocol (Device and Protocol must be set) Signed-off-by: Alexandr Shadchin <Alexandr.Shadchin@gmail.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-03-01Remove extra definition CommDataAlexandr Shadchin
Signed-off-by: Alexandr Shadchin <Alexandr.Shadchin@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-03-01Remove arg proto_ops in ReadHwState()Alexandr Shadchin
Signed-off-by: Alexandr Shadchin <Alexandr.Shadchin@gmail.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-03-01Move definition struct SynapticsHwInfo in ps2comm.hAlexandr Shadchin
Signed-off-by: Alexandr Shadchin <Alexandr.Shadchin@gmail.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-09-01Use InputInfoPtr instead of LocalDevicePtr.Peter Hutterer
The latter is about to be removed from the server, InputInfoPtr has been around in all supported server versions. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-06-17Purge GuestMouse support.Peter Hutterer
Guest mouse dates back to quite a while ago, hasn't been tested for ages and the current synaptics interface guide claims the bit that we used to check if guestmouse is available is "reserved for future use. The host should ignore the values of reserved bits when reading the capability bits." Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-05-08Purge SynapticsHWInfo stuff, move it into proto_data.Peter Hutterer
This was only used in PS/2, on linux only on kernel 2.4 and it clobbered up the rest. Move it to the ps2comm parts only, keep it private there. This includes adding a "proto_data" field to the SynapticsPrivate. This patch removes the -h option for synclient. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Christoph Brill <egore911@egore911.de>
2009-04-26Remove Synaptics SHM configuration bits.Peter Hutterer
The only thing we still export through SHM is the hardware state.
2008-09-17ReadDevDimensions on opened deviceHenrik Rydberg
The auto-dev probing requires opening the device locally to determine the type of device, so that the right protocol can be assigned. However, all other setup work should be performed during initialization of the assigned and opened device. This patch moves the read-device-dimensions functionality from some special cases during the probe process to the initialization routine, where it can be used for all supported devices. Signed-off-by: Henrik Rydberg <rydberg@euromail.se> Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
2008-09-09Pre-probe the device (eventcomm only).Peter Hutterer
For auto-dev, we'd probe the device node and get the axis ranges. If we specify the device however we didn't retrieve the axis ranges and thus got stuck with the defaults - losing out on automatic edge and accel calculation. This is an issue if the device is hotplugged, as HAL will specify the device node. This patch adds another hook to synproto_operations to pre-probe the device. This hook is only used by eventcomm and opens the FD, queries the axis range and closes the FD again.
2008-07-14Build psmcomm on *BSD systems only.Christoph Brill
This is the second part of fixing the backend part of synaptics. The new build system is now able to detect whether it's running on *BSD or on Linux and will only build the backends that are available on these platforms. Also it will remove any reference from the built driver to the non-available backends. Thanks to Christian Schmitt for reporting.
2008-07-11Finally change the GPL headers to MIT onesChristoph Brill
2008-06-06Start reorganizing the source treeChristoph Brill
First let's move the source and header files to a seperate source directory. The structure of the new directory layout will be similar to xf86-input-evdev.