How can I map the mouse axes to my keyboard keys in the Mac OSX 10.6 Terminal? For example, moving the mouse up (positive x) triggers a keypress of W. Is this built in, or do I need a software package? The only search results I found were for mouse-driver, which I don't have on my system.
|
|
||||
migrated from unix.stackexchange.com Dec 28 '11 at 16:23
|
There's Divvy, and SizeUp, and Flexiglass - they don't do exactly what you're after, but they do offer more flexible keyboard control over windowing. They're probably all worth a look. http://www.irradiatedsoftware.com/sizeup/ http://www.nulana.com/flexiglass Good luck! |
|||
|
|
|
As a workaround you could write a command line tool to move the mouse cursor around and then use your shell's programmable key-binding options to execute this command line tool when a specified key sequence is entered.
|
|||
|
|
To receive mouse events in Terminal.app have a look at tools such as MouseTerm, USBOverdrive or ControllerMate! If you feel like using a command line tool, have a look at altermouse.c as well (... possibly extended by using AppleScript). For some X11 tools see xdotool and xautomation (the former being available via MacPorts). |
|||
|
|
|
You could also use KeyRemap4MacBook.
You can assign other keys to the mouse key actions by creating a private.xml. The test folder has an XML file with all the predefined remappings. |
|||
|
|

System Preferences > Universal Access > Mouse (tab). – Jason Salaz♦ Jan 27 '12 at 19:43