summaryrefslogtreecommitdiff
path: root/src/vmmouse.c
AgeCommit message (Collapse)Author
2014-07-14Fix wheel button labelsLoïc Yhuel
Wheel is using buttons 4/5, but btn_labels array is 0-based. It matches mouse and evdev drivers, and fixes wheel in Qt5.3. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2013-10-21Don't de-reference pMse if it hasn't been initialised yetPeter Hutterer
If the device fails PreInit, UnInit is still called by pMse may be NULL. Dereferencing it is a bad idea. Reviewed-by: Jakob Bornecrantz <jakob@vmware.com> Signed-off-by: Jakob Bornecrantz <jakob@vmware.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2013-10-21Handle DEVICE_ABORT on ABI 19.1Peter Hutterer
Called on server abort, so let's just do the absolute minimum. Reviewed-by: Jakob Bornecrantz <jakob@vmware.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
2013-02-07Free the vmmouse data on UnInitPeter Hutterer
xf86DeleteInput() will free pInfo->private, but not the one hanging off that. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Tested-by: Zack Rusin <zackr@vmware.com>
2012-11-23Fix compiler warnings about unused variablesPeter Hutterer
vmmouse.c: In function 'MouseCommonOptions': vmmouse.c:732:16: warning: variable 'from' set but not used [-Wunused-but-set-variable] vmmouse.c: In function 'MouseCommonOptions': vmmouse.c:733:8: warning: variable 'origButtons' set but not used [-Wunused-but-set-variable] vmmouse.c: In function 'VMMouseDeviceControl': vmmouse.c:838:19: warning: variable 'mPriv' set but not used [-Wunused-but-set-variable] Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
2012-11-23Use sigsafe logging in ReadInput pathPeter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
2012-08-07Reset ps2buttons to avoid button messages from being discarded.Stephen Brooks
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com> Signed-off-by: Jakob Bornecrantz <jakob@vmware.com> Signed-off-by: Stephen Brooks <nightbikeman@gmail.com>
2012-05-03Enable hardware access during vmmouse preinit.Michal Srb
Vmmouse driver uses outl calls but never requests hardware access. In case there are no other drivers that requests it, vmmouse initialization will fail. (Found on KVM virtual machine with fbdev graphics driver and vmmouse input driver.) Request hardware access in same way xf86-input-keyboard does. Signed-off-by: Zack Rusin <zackr@vmware.com>
2012-01-12Deal with opaque InputOption types in ABI 14Peter Hutterer
Tested-by: Jakob Bornecrantz <jakob@vmware.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
2010-11-04Make the modinfo sring contain an optional subpatch numberThomas Hellstrom
The idea is that the build system assigns this number if needed. As an example it might be the commit number since the last version tag. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2010-11-04Adjust to input ABI 12.Peter Hutterer
New PreInit prototype that requires reshuffling. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2010-11-04Move allocation of mPriv down.Peter Hutterer
No functional change. If we get to this point, we know it's available. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Thomas Hellstrom <thellstrom@vmware.com>
2010-11-04ABI 12 requires valuator modes to be specified.Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Thomas Hellstrom <thellstrom@vmware.com>
2010-11-04Move passthrough initialization out into a separate function.Peter Hutterer
No functional changes, just modularising a bit to make future changes easier. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2010-11-04Remove superflouous assignment.Peter Hutterer
mPriv is freed a few lines down, assigning anything here makes no difference. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Thomas Hellstrom <thellstrom@vmware.com>
2010-11-04Replace LocalDevicePtr with InputInfoPtr.Peter Hutterer
The LocalDevicePtr define was removed from the server with ABI 12, but InputInfoPtr has been an alias for it since the Xfree86/Xorg fork. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Thomas Hellstrom <thellstrom@vmware.com>
2010-10-21InputDriverRec XINPUT cleanup.Trevor Woerner
ABI version 11 of the InputDriverRec data structure no longer includes the refCount member. Signed-off-by: Trevor Woerner <twoerner@gmail.com> Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
2010-10-21Deprecated code cleanup.Trevor Woerner
Replace calls to deprecated dynamic memory wrapper functions in driver code. Signed-off-by: Trevor Woerner <twoerner@gmail.com> Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
2010-07-09Purge macro NEED_EVENTSFernando Carrijo
Signed-off-by: Fernando Carrijo <fcarrijo@yahoo.com.br> Acked-by: Tiago Vignatti <tiago.vignatti@nokia.com> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-04-17Include exevents.h for XIGetKnownPropertyJulien Cristau
Fixes this compiler warning: vmmouse.c: In function ‘VMMouseDeviceControl’: vmmouse.c:734: warning: implicit declaration of function ‘XIGetKnownProperty’ Signed-off-by: Julien Cristau <jcristau@debian.org>
2010-02-26vmmouse: don't hardcode the module version in the sourceJulien Cristau
XORG_RELEASE_VERSION gives us that info from configure.ac, let's use it. Signed-off-by: Julien Cristau <jcristau@debian.org>
2009-09-08Symbol was removed from the server.Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-08-06Compile with INPUT ABI 7.xf86-input-vmmouse-12.6.5Adam Jackson
Button labels up to 7 are essentially default so we can assume they are the usual ones. Beyond that, they are anyone's guess. Axis labels are X/Y. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-29Needed by newer X servers, otherwise the module data is invisible and a ↵Peter Hutterer
dlopen error occurs. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-29Turn off built-in fallback-to-mouse-driver mechanism. With inputShelley Gong
hotplug, HAL handles deciding which driver to use and the presence of mouse_drv can't be assumed anymore on modern distros.
2009-06-06Remove ModuleInfoRec and associated bits.Matthias Hopf
ModuleInfoRec was removed with 2107becb0ce2ffda001be65728c53563496d8d50 from the server. The MouseOpts were only used from the ModuleInfoRec, they're gone now too. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-05-111) Fix bug where motion notify events were being sent with every button event.xf86-input-vmmouse-12.6.4Shelley Gong
2) Classify relative vs. absolute packets individually rather than from a global flag. 3) Compile with older distros. 4) Bump for 12.6.4 Release. Signed-off-by: Philip Langdale <philipl@fido2.homeip.net>
2008-11-14Bump for 12.6.2 release.xf86-input-vmmouse-12.6.2Philip Langdale
2008-11-13Only turn on absolute mode when we get an actual event; we don'tPhilip Langdale
want the driver to throw us into absolute mode just because the device is present but the user has a relative input path configured.
2008-11-13Don't flush buttons.Philip Langdale
Apply equivalent of commit 6a03e8bd9699a33dabcdd2bbcf51a001ddfd5534 from xf86-input-mouse.
2008-10-23Bump for 12.6.1 release.xf86-input-vmmouse-12.6.1Philip Langdale
2008-10-23Bump version number for 12.6.0 release.xf86-input-vmmouse-12.6.0Philip Langdale
2008-10-17Change ZAxisMapping default to match main mouse driver.Philip Langdale
2008-10-17Properly set axis range and resolution for Server 1.5+Philip Langdale
2008-10-14Revert "Grab mouse from kernel if possible."Matthias Hopf
This reverts commit 028e7d0001d4948e7b11a68d904c6b307a1ccfb3. The test turned out to be bogus, in fact, the patch had no effect. The used kernel mouse driver doesn't even allow grabbing...
2008-09-29Grab mouse from kernel if possible.Matthias Hopf
Avoids mouse event duplication if a mouse driver is sitting on /dev/input/mice on Linux.
2008-08-19Remove useless call to xf86AddModuleInfoAdam Jackson
2008-06-16Check for XINPUT ABI 3.Jeff Smith
Signed-off-by: Peter Hutterer <peter@cs.unisa.edu.au>
2008-05-21Don't call conversion_proc for older Xserversxf86-input-vmmouse-12.5.1Vinay Bondhugula
There was a bug in the Xserver for a while when it didn't call a driver's conversion_proc to convert device space coordinates to screen space. To fix this, vmmouse starting calling that method (since January), but if this is done on older versions of X, the conversion gets done twice. The fix is to add a configure check for the right versions of X and call VMMouseConvertProc() only if we are compiling against an X that has the bug. There's some whitespace cleanup for vmmouse.c too.
2008-04-22Compatibility with older versions of XVinay Bondhugula
- Makes the driver compile againt older versions of X (tested upto 4.3). - Bump up the version number in configure.ac and the modinfo section. - A couple of trivial whitespace cleanups.
2008-01-22Fix device to screen space coordinate conversionVinay Bondhugula
The Xserver no longer calls an input device's conversion_proc to convert x and y coordinates from device to screen space. This fix calls the conversion routine in vmmouse.c before posting the motion event to Xserver. Other drivers also seem to rely on conversion_proc, so the real fix should probably go into Xserver's code (maybe in xserver/hw/xfree86/common/xf86Xinput.c?).
2007-09-25Update for 12.4.3 release.vmmouse-12_4_3Philip Langdale
2007-09-24Add compatibility #define for compilation on pre-X.OrgPhilip Langdale
versions of the Xserver.
2007-09-24There are problems when running with old X releases with aPhilip Langdale
global symbol collision with the svga driver.
2007-09-10Guard modinfo section against gcc.vmmouse-12_4_2Philip Langdale
2007-09-10Merge branch 'master' of ↵Philip Langdale
git+ssh://git.freedesktop.org/git/xorg/driver/xf86-input-vmmouse
2007-09-10Ready 12.4.2 release.Philip Langdale
To allow for easier detection of driver version by other VMware tools, we are embedding the version in a .modinfo section so that the Linux kernel 'modinfo' tool can be (ab)used to check it.
2007-08-28Port to new motion history/InitPointerDeviceStruct ABIAlan Coopersmith
(Copied from daniels' fix to xf86-input-mouse)
2007-02-27Under certain circumstances, typically when the kernel PS/2 driver decidesvmmouse-12_4_1Philip Langdale
to reset the PS/2 device, we can find ourselves in an inconsistent state between the vmmouse driver and the virtual hardware. When this is encountered, we should re-request absolute mode from the hardware to get back in sync.
2006-04-07Unlibcwrap. Bump server version requirement. Bump to 12.4.0.xf86-video-impact-0_2_0vmmouse-12_4_0XORG-7_1Adam Jackson