简体   繁体   中英

Programming with Macbook Pro, and map mouse left click to keyboard

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM