Used to be (back in OS 9) there was Double Touch. I suppose it's possible that someone could hack something together using something like the AppleScript support for GUI scripting, but it seems, well.