Library: MouseGestures.dll

Current version
v0.2.1, 2005-04-25
Download mousegestures-0.2.1.zip (201KB), Delphi 5 source code and demo application included.
freeware, open source
Abstract
The MouseGestures DLL is a library that enables you to enhance your application with mouse gestures. It is intended for application developers, not end users.
Operating systems/languages
Windows. Reported to work on Win2000, WinXP, Win95. The project could also be successfully compiled with Delphi 4.
Thanks to Holger Schieferdecker for testing Win95, D4
It should work with any language capable of binding to dynamic link libraries such as C++, C#, Object Pascal (Delphi), …
Licence
MouseGestures.dll is freeware that comes without any warranty or support. Thus you use it at your own risk. You may even use it in commercial products as long as you mention me as original author somewhere. If you make modifications to the source code, you must maintain the original copyright notice and publish it under the same licence. For the exact conditions, see LICENCE.txt that is contained in the download package.
Stay tuned
My announcement newsletter: You can subscribe to my huberdoc_announce newsletter if you want to stay tuned when I release new versions of my software. Just include the word "subscribe" in the subject. You will then receive a confirmation request to your email address. Your mail address will not be processed by me or anyone else in any way to send you spam or other bad things.
I also set up an RSS feed if you prefer not to give away your mail address.

Introduction

The first time I stumbled over mouse gestures was when Opera Software ASA introduced them for their web browser Opera.

They are an ingenious way of enhancing a simple computer mouse. A mouse gesture is a specific movement of the mouse while you hold down your right mouse button.

So, to execute the down-right gesture, for instance, you'd press and hold the right mouse button. Then move the mouse down and right. When you release the right mouse button, the gesture is completed. If you registered the down-right gesture with your application,

Usage

Just link the DLL to your programme and register the mouse gestures to your liking. The README.html file in the download package contains a more detailed information, so I'll just point out the main features below.

Basically, it's just calling RegisterGesture for each gesture you want to respond to, then enable gestures with GesturesOn. The library does clean up the registered gestures when it is unloaded, but if you want to do this yourself, you can call GesturesOff and UnregisterAllGestures.

Changelog

2005-04-25 — 0.2.1
Bugfix: Mouse wheel handling now consumes messages when an action was performed.
2005-04-23 — 0.2
Improved system performance by attaching the DLL only to your own thread/process (See GesturesOn in README.html)
(bug)fix: Only mark the message as handled, if we actually did something. This fixes popup menu issues.
Mosue wheel integration for gestures.
Implemented gesture modifiers (Alt, Ctrl, Shift)
2005-04-05 — v0.1
Published v0.1

Credits

I'd like to thank Marian Aldenhövel for the initial spark to implement this module at all as well as Michael Winter and Torsten Munkelt for their precious comments in the news group de.comp.lang.delphi.misc.

Contact & ImprintKontakt & Impressum
Created: 2005-04-05 — last modified: 2005-04-25 — last update of web site: 2010-01-16