ControllerMate (part 13 of 14). Distinguishing between one-button and two-button clicks – with faster, reliable release.

Note: this is not a substitute for the original and most excellent ControllerMate tutorial. I am endeavoring to save some time for those who have read it and now are eager to get things done.

Important: I strongly recommend that for the duration of this adventure you find and connect an extra mouse to your Mac – that way even if you mis-configure your target device you will still have full control.

This is part thirteen in a series of posts. For the full table of contents go here or here.

The original solution for distinguishing between one-button and two-button clicks relied on time delay to manage the release of the modifier. If you do not get it right, or if your dexterity varies when you are tired, you need a better, faster, more reliable solution:

one  or two buttons - a slightly faster version

Here when Button #1 is OFF, it is instantly OFF. It is not acting as a modifier any longer. Simple. Reliable. Beautiful.

I left the Funk tune active here as a reminder that Button #1 still registers when you are going for a two-button press. You may not care now, but wait till your script goes horribly wrong simply because while engaging two buttons you have also selected something with your mouse!  If you are aware of it, it could be a very useful feature.

With this last improvement we can move on to the ultimate mouse configuration (or is it a pair of pedals in your case?)


About this entry