I am very new to Mac. When programming with eclipse or any other开发者_如何转开发 application, is it possible to map mouse left click to keyboard ?
I don't believe there is any way to do what you are asking in Eclipse (as an IDE). If you are trying to do this in an app that you are creating you could map certain key press actions to fire mouse events.
If this is just for your local mac use, you might look at the Mac keyboard/mouse config and see if you can change the mapping there.
Hope this helps.
Since you say you're new to the mac:
You can configure the trackpad to accept clicks directly (that is, tapping on the pad is the equivalent of clicking the button). In that way, left-clicks can be performed either by clicking the trackpad button or by tapping the trackpad itself.
Right-clicks are, in Mac-land, sometimes represented by control-clicks (which gets hairy when the application is programmed to accept control-clicks, but that's a whole 'nother story...) So you can hold the control key and click the trackpad button, or tap the trackpad, to get a right-click. You can further configure the trackpad to accept two-finger taps on the trackpad as right-clicks (no control key needed); also, two-finger drags can scroll, like a scroll wheel.
精彩评论