Automate Your Input Devices

We’ve talked about your keyboard already, and we return to it in several future chapters. But I want to take a moment to talk about other input devices, such as the one you use to move your pointer, as well as game controllers and other special-use input devices.

Remember when every Mac came with a one-button mouse? Now multi-touch trackpads and Magic Mice (with no visible buttons) are de rigueur, but it’s still easy to find third-party mice, trackballs, and other input devices with numerous configurable buttons, wheels, and other controls. Even Apple’s minimalist pointing devices can be configured to do special things with gestures and combinations of modifier keys and clicks.

Every extra button or control on an input device can be put to some good use. Although you need not use anything other than a simple keyboard and a pointing device with a single button, you may—depending on your needs, tasks, and disposition—find it easier and quicker to do certain tasks via a dedicated button or knob than with an obscure menu command or keyboard shortcut.

Would you indulge me in a brief story?

I used to manage software development for Kensington, a computer accessories company. One of our products was a four-button trackball called Expert Mouse (or, in some variants, Turbo Mouse). I shared a large office called the Mouse Lab with three other people—Cris, Debra, and Don. One afternoon when we all should have been busy with more productive tasks, we made up a game that, while goofy, illustrates the kind of thing you can do with a bit of clever automation and a few extra buttons on your input device.

We each started by making rules in Outlook (our email program) to play unique sounds whenever we received an email message from one another. For example, when I received a message from Don, my computer went Zing! but when Debra sent me a message, it went Pop! Everyone had a custom sound for each other person in the room.

Next, we configured MouseWorks (the software, since superseded by TrackballWorks, used to control our trackballs) so that each of the three extra buttons—besides the one used for a regular click—sent one of the others a blank email message.

Is your head spinning yet? Well, here’s the result of our labors. I click button #2 on my trackball and Don’s computer makes a Crack! sound. Don clicks button #3 on his trackball and Debra’s computer makes a Ping! sound. Cris clicks button #4 on his trackball and my computer makes an Oof! sound. And so on. So we spent half the day zapping each other with our trackball buttons. You had to be there, I guess, but it was hilarious, like a virtual pillow fight.

That’s not a useful example of automating input devices, I admit. But perhaps it will inspire you to think up customizations that will make you more productive.

Use Trackpad and Magic Mouse Gestures

If you have a Mac laptop with a built-in trackpad, or a stand-alone Magic Trackpad, you have at your disposal a device that supports not just moving the pointer and clicking, but also scrolling, switching apps, displaying contextual menus, zooming, and numerous other actions by way of gestures such as swiping, pinching, and tapping (with one or more fingers). Apple’s Magic Mouse also has a multitouch-capable top surface with support for many (but not quite all) of the same actions.

You must configure your trackpad or mouse with the gestures you want to use—that’s the easy part. The harder part is training your fingers to perform these gestures until they become second nature.

To set up your multitouch trackpad or Magic Mouse:

  1. Open the Trackpad (Figure 12) or Mouse pane of System Preferences, depending on which device you’re using.
    **Figure 12:** The Trackpad pane of System Preferences has numerous options for configuring taps and gestures.

    Figure 12: The Trackpad pane of System Preferences has numerous options for configuring taps and gestures.

  2. In each view (Point & Click, More Gestures, and—for trackpads only—Scroll & Zoom), hover over a gesture to display a video demonstrating how it works.
  3. To enable a gesture, select its checkbox.
  4. Some gestures have multiple options—use the pop-up menu under the gesture name to specify your preference. For example, in the More Gestures view of the Trackpad pane, the Swipe Between Full-Screen Apps gesture can be performed by swiping left or right with either three fingers or four fingers.
  5. Practice the gestures you’ve just configured! You may find it helpful to create a little cheat sheet with the gestures and settings you’ve chosen (e.g., “4 L/R to switch apps”) until you’ve memorized them.

As you use gestures, you’ll find them increasingly natural—and it will drive you crazy to use a Mac with different settings!

Unfortunately, Apple offers no way to assign custom actions to trackpad and mouse gestures—you can’t, say, swipe three fingers diagonally to run a script. So, the point of enabling and using these gestures isn’t to do new things, but to do existing things more easily—with practice, you may find that if your fingers are already on the trackpad, it’s quicker to zoom by pinching than by dragging a slider; it’s easier to scroll by dragging two fingers than by clicking arrow buttons; and so on.

Save Clicks with Third-party Input Devices

In Apple’s design aesthetic for pointing devices, even a single visible button is considered excessive. But some people like having lots of buttons, and if you find it easier to remember “click the second button from the left” than “swipe down with three fingers” do perform a particular action, a third-party device might be just what you need.

During the time I worked at Kensington, we had a trackball model (Turbo Mouse Pro) with 11 buttons and a trackpad (WebRacer) with 22 buttons—all programmable! Those particular models have been discontinued, but companies like Kensington, Logitech, and Microsoft still sell mouse and trackball models with multiple buttons that you can customize to meet your needs. In some cases you can also customize scroll wheels and other controls.

An obvious use for an extra button is to perform a double-click. (Recall that, all things being equal, less clicking is preferable.) If you have your hand on your pointing device most of the time anyway, perhaps a finger naturally falls on an “extra” button that can serve this purpose. You might also use buttons for frequent operations such as Undo, Cut, Copy, Paste, switching apps, and so on.

Most third-party input devices come with software that lets you customize the controls. Kensington trackballs come with TrackballWorks, Logitech pointing devices come with Logitech Control Center, and Microsoft mice…somehow, even in 2014, include software only for Windows. But no matter, you can still customize them with a third-party utility called USB Overdrive, discussed next.

Other actions you can potentially assign to mouse buttons include:

Program an Input Device with USB Overdrive

Many fine input devices come only with Windows software (or in some cases, no software at all), but thanks to a piece of shareware called USB Overdrive, Mac users can fully configure nearly any USB mouse, trackball, keyboard, gamepad, joystick, or other HID (human interface device) product—as well as most Bluetooth pointing devices. The app functions in much the same way as TrackballWorks and Logitech Control Center—pick a device, pick a button, pick an action for that button; repeat as needed.

If you were so inclined, you could get, say, a Logitech Extreme 3D Pro joystick and program each of its 12 buttons, each of the 8 directions on its hat switch, the throttle control, the joystick directions, and the twist rudder control to do something different on your Mac. Of course, the obvious use would be to program all the controls to work in a game such as a flight simulator, but I’m just saying…if you wanted each button to send a different person a blank email message that resulted in a sound playing on their computer, you could.

Griffin PowerMate

The PowerMate is a large, shiny knob with a glowing blue base and a USB cable. It’s about as simple as an input device can get. And yet, with the included software, you can program it to do an astonishing array of tasks. Twisting the knob left or right, or pressing down on it (either a short press or a long press)—with or without modifier keys—can trigger keystrokes, change your Mac’s volume, launch AppleScripts, open apps, and perform tons of other actions.

And, those actions can vary according to the frontmost app. So you might use the PowerMate as a volume control (when twisting) or a mute toggle (with the button) while in iTunes, but use it to go to previous/next pages in your Web browser and scrub left or right in GarageBand. Not only that, but you can configure the blue light in the base to alert you to various conditions on your Mac—on/off, brightness level, and pulse speed can all mean something different.

Learn about Other Special Input Devices

I’ve mentioned multi-button mice and trackballs, programmable trackpads, extra keyboard keys, gamepads and joysticks, and the Griffin PowerMate as examples of user-configurable input devices. In addition, just about any other USB or Bluetooth input device can be connected to your Mac, and if it doesn’t happen to come with its own software, you can likely use USB Overdrive to program its actions.

A few examples of the many special-purpose devices that you might consider are: