我有一台 Logitech M510 无线鼠标,使用的是 Mac。现在我可以通过 Logitech 控制面板为两个拇指按钮分配不同的操作。我想要的是让鼠标按钮组合执行操作。
因此,如果我按住拇指按钮 1 并单击左键,Chrome 中的选项卡将关闭。以及任何其他“按住一个按钮,单击另一个按钮”组合。
有没有办法实现这种类型的定制?
答案1
Better Touch Tool 可以满足您的需求。我刚刚下载了它,非常喜欢它:http://www.boastr.net/
我相信它也可以在 Mac App Store 上找到。
它支持:
- 魔术鼠标
- Macbook 触控板
- 妙控板
- 键盘快捷键
- 正常小鼠
- Apple 遥控器
答案2
我的 MacBook Air 上的 Logitech M560 鼠标也出现了类似的问题。我很喜欢这款鼠标!它有 5 个按钮和一个倾斜滚轮,真正的橡胶握把(不是那种一年后会变粘的喷涂材料),电池寿命为 1 年,最重要的是……带锂电池的重量仅为 92 克!!!太棒了。但它根本不兼容 Mac,而且任何第三方 USB 驱动程序都无法与它配合使用。这是因为有些按钮根本不发送 USB 按钮点击事件(如果你问我,这是一种非常糟糕的做法),而是发送特定于 Windows 的硬编码键盘快捷键/触摸事件。USB Overdrive 和 SteerMouse 只查找 USB 点击事件,因此它们无法“找到”大多数按钮。
不过我找到了解决办法!
- 下载登山扣:https://pqrs.org/osx/karabiner/
- 安装、启动并在“系统偏好设置 > 安全”中授予权限
- 在应用程序中,单击“杂项和卸载”选项卡下的“打开 private.xml”
- 创建特定于设备的重新映射来做任何你想做的事情!(编辑 XML 的文档:https://pqrs.org/osx/karabiner/xml.html.en)
由于某些 M560 按钮发送 Mac 无法理解的 Windows 专用按键,因此在某些情况下,Mac 唯一“看到”的按键是命令或选项按键!但重新映射这些按键是安全的,因为重新映射是特定于设备的。它们仅在从鼠标发送时触发。所以我能够控制所有 M560 按钮!
下面是我为 Karabiner 编写的 private.xml 文件,其中包含两个拇指按钮的所有常见“任务控制”快捷键的映射。我为中间按钮添加的唯一映射是 Launchpad,因为这似乎是该按钮唯一明显的功能。但同样,您可以根据自己的喜好编辑文件。困难的部分是找出正确的触发器,它们都在那里。您只需更改它们映射到的内容(即自动生成条目的最后一行)。
请注意:您可能还必须更改产品 ID 以匹配 Logitech USB 接收器的 ID。单击 Karabinder 的菜单栏图标,然后单击“启动事件查看器...”和“设备”选项卡以查找设备的 ID。最后再说一句...我认为设备 ID 实际上是统一接收器(而不是鼠标),因此如果您使用的是 Logitech 键盘,您可能会不走运,因为其中一些映射会弄乱您的命令和选项键。例如,Mac 可以理解的向前拇指按钮发送的唯一内容是正确的命令键!但如果您只使用 M560 鼠标,那么一切就都好了!
这是我的 private.xml 文件。
<?xml version="1.0"?>
<root>
<item>
<name>Logitech M560 Mouse - Macintosh Shortcuts</name>
<!-- Middle Button - Launchpad -->
<devicevendordef>
<vendorname>LOGITECH</vendorname>
<vendorid>0x046d</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>USB_Receiver</productname>
<productid>0xc52b</productid>
</deviceproductdef>
<item>
<name>Middle Button -> Launchpad</name>
<identifier>private.deviceproductdef_middle_button_to_launchpad</identifier>
<device_only>DeviceVendor::LOGITECH, DeviceProduct::USB_Receiver</device_only>
<autogen>__SimultaneousKeyPresses__
KeyCode::OPTION_L, KeyCode::COMMAND_L,
KeyCode::F4
</autogen>
</item>
<item>
<name>Tilt Wheel</name>
<!-- M560 Tilt Left - Zoom Out -->
<devicevendordef>
<vendorname>LOGITECH</vendorname>
<vendorid>0x046d</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>USB_Receiver</productname>
<productid>0xc52b</productid>
</deviceproductdef>
<item>
<name>Left -> Zoom Out</name>
<identifier>private.deviceproductdef_tilt_left_to_zoom_out</identifier>
<device_only>DeviceVendor::LOGITECH, DeviceProduct::USB_Receiver</device_only>
<autogen>__KeyToKey__
KeyCode::BRACKET_LEFT, ModifierFlag::COMMAND_L,
KeyCode::MINUS, ModifierFlag::COMMAND_L
</autogen>
</item>
<!-- M560 Tilt Left - Scroll Left -->
<devicevendordef>
<vendorname>LOGITECH</vendorname>
<vendorid>0x046d</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>USB_Receiver</productname>
<productid>0xc52b</productid>
</deviceproductdef>
<item>
<name>Left -> Scroll Left</name>
<identifier>private.deviceproductdef_tilt_left_to_scroll_left</identifier>
<device_only>DeviceVendor::LOGITECH, DeviceProduct::USB_Receiver</device_only>
<autogen>__KeyToKey__
KeyCode::BRACKET_LEFT, ModifierFlag::COMMAND_L,
KeyCode::CURSOR_LEFT
</autogen>
</item>
<!-- M560 Tilt Right - Zoom In -->
<devicevendordef>
<vendorname>LOGITECH</vendorname>
<vendorid>0x046d</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>USB_Receiver</productname>
<productid>0xc52b</productid>
</deviceproductdef>
<item>
<name>Right -> Zoom In</name>
<identifier>private.deviceproductdef_tilt_right_to_zoom_out</identifier>
<device_only>DeviceVendor::LOGITECH, DeviceProduct::USB_Receiver</device_only>
<autogen>__KeyToKey__
KeyCode::BRACKET_RIGHT, ModifierFlag::COMMAND_L,
KeyCode::EQUAL, ModifierFlag::COMMAND_L
</autogen>
</item>
<!-- M560 Tilt Right - Scroll Right -->
<devicevendordef>
<vendorname>LOGITECH</vendorname>
<vendorid>0x046d</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>USB_Receiver</productname>
<productid>0xc52b</productid>
</deviceproductdef>
<item>
<name>Right -> Scroll Right</name>
<identifier>private.deviceproductdef_tilt_right_to_scroll_right</identifier>
<device_only>DeviceVendor::LOGITECH, DeviceProduct::USB_Receiver</device_only>
<autogen>__KeyToKey__
KeyCode::BRACKET_RIGHT, ModifierFlag::COMMAND_L,
KeyCode::CURSOR_RIGHT
</autogen>
</item>
</item>
<item>
<name>Forward Button</name>
<!-- M560 Forward Button - Forward in Safari -->
<devicevendordef>
<vendorname>LOGITECH</vendorname>
<vendorid>0x046d</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>USB_Receiver</productname>
<productid>0xc52b</productid>
</deviceproductdef>
<item>
<name>Forward in Safari</name>
<identifier>private.deviceproductdef_forward_button_to_safari_forward</identifier>
<device_only>DeviceVendor::LOGITECH, DeviceProduct::USB_Receiver</device_only>
<autogen>__KeyToKey__
KeyCode::COMMAND_R,
KeyCode::BRACKET_RIGHT, ModifierFlag::COMMAND_L
</autogen>
</item>
<!-- M560 Forward Button - Mission Control -->
<devicevendordef>
<vendorname>LOGITECH</vendorname>
<vendorid>0x046d</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>USB_Receiver</productname>
<productid>0xc52b</productid>
</deviceproductdef>
<item>
<name>Mission Control</name>
<identifier>private.deviceproductdef_forward_button_to_mission_control</identifier>
<device_only>DeviceVendor::LOGITECH, DeviceProduct::USB_Receiver</device_only>
<autogen>__KeyToKey__
KeyCode::COMMAND_R,
KeyCode::CURSOR_UP, ModifierFlag::CONTROL_L
</autogen>
</item>
<!-- M560 Forward Button - Application Windows -->
<devicevendordef>
<vendorname>LOGITECH</vendorname>
<vendorid>0x046d</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>USB_Receiver</productname>
<productid>0xc52b</productid>
</deviceproductdef>
<item>
<name>Application Windows</name>
<identifier>private.deviceproductdef_forward_button_to_application_windows</identifier>
<device_only>DeviceVendor::LOGITECH, DeviceProduct::USB_Receiver</device_only>
<autogen>__KeyToKey__
KeyCode::COMMAND_R,
KeyCode::CURSOR_DOWN, ModifierFlag::CONTROL_L
</autogen>
</item>
<!-- M560 Forward Button - Desktop -->
<devicevendordef>
<vendorname>LOGITECH</vendorname>
<vendorid>0x046d</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>USB_Receiver</productname>
<productid>0xc52b</productid>
</deviceproductdef>
<item>
<name>Show Desktop</name>
<identifier>private.deviceproductdef_forward_button_to_show_desktop</identifier>
<device_only>DeviceVendor::LOGITECH, DeviceProduct::USB_Receiver</device_only>
<autogen>__KeyToKey__
KeyCode::COMMAND_R,
KeyCode::F11
</autogen>
</item>
<!-- M560 Forward Button - Dashboard -->
<devicevendordef>
<vendorname>LOGITECH</vendorname>
<vendorid>0x046d</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>USB_Receiver</productname>
<productid>0xc52b</productid>
</deviceproductdef>
<item>
<name>Show Dashboard</name>
<identifier>private.deviceproductdef_forward_button_to_show_dashboard</identifier>
<device_only>DeviceVendor::LOGITECH, DeviceProduct::USB_Receiver</device_only>
<autogen>__KeyToKey__
KeyCode::COMMAND_R,
KeyCode::F12
</autogen>
</item>
</item>
<item>
<name>Back Button</name>
<!-- M560 Back Button - Back in Safari -->
<devicevendordef>
<vendorname>LOGITECH</vendorname>
<vendorid>0x046d</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>USB_Receiver</productname>
<productid>0xc52b</productid>
</deviceproductdef>
<item>
<name>Back in Safari</name>
<identifier>private.deviceproductdef_back_button_to_safari_back</identifier>
<device_only>DeviceVendor::LOGITECH, DeviceProduct::USB_Receiver</device_only>
<autogen>__KeyToKey__
KeyCode::D, ModifierFlag::COMMAND_L,
KeyCode::BRACKET_LEFT, ModifierFlag::COMMAND_L
</autogen>
</item>
<!-- M560 Back Button - Mission Control -->
<devicevendordef>
<vendorname>LOGITECH</vendorname>
<vendorid>0x046d</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>USB_Receiver</productname>
<productid>0xc52b</productid>
</deviceproductdef>
<item>
<name>Mission Control</name>
<identifier>private.deviceproductdef_back_button_to_mission_control</identifier>
<device_only>DeviceVendor::LOGITECH, DeviceProduct::USB_Receiver</device_only>
<autogen>__KeyToKey__
KeyCode::D, ModifierFlag::COMMAND_L,
KeyCode::CURSOR_UP, ModifierFlag::CONTROL_L
</autogen>
</item>
<!-- M560 Back Button - Application Windows -->
<devicevendordef>
<vendorname>LOGITECH</vendorname>
<vendorid>0x046d</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>USB_Receiver</productname>
<productid>0xc52b</productid>
</deviceproductdef>
<item>
<name>Application Windows</name>
<identifier>private.deviceproductdef_back_button_to_application_windows</identifier>
<device_only>DeviceVendor::LOGITECH, DeviceProduct::USB_Receiver</device_only>
<autogen>__KeyToKey__
KeyCode::D, ModifierFlag::COMMAND_L,
KeyCode::CURSOR_DOWN, ModifierFlag::CONTROL_L
</autogen>
</item>
<!-- M560 Back Button - Show Desktop -->
<devicevendordef>
<vendorname>LOGITECH</vendorname>
<vendorid>0x046d</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>USB_Receiver</productname>
<productid>0xc52b</productid>
</deviceproductdef>
<item>
<name>Show Desktop</name>
<identifier>private.deviceproductdef_back_button_to_show_desktop</identifier>
<device_only>DeviceVendor::LOGITECH, DeviceProduct::USB_Receiver</device_only>
<autogen>__KeyToKey__
KeyCode::D, ModifierFlag::COMMAND_L,
KeyCode::F11
</autogen>
</item>
<!-- M560 Back Button - Show Dashboard -->
<devicevendordef>
<vendorname>LOGITECH</vendorname>
<vendorid>0x046d</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>USB_Receiver</productname>
<productid>0xc52b</productid>
</deviceproductdef>
<item>
<name>Show Dashboard</name>
<identifier>private.deviceproductdef_back_button_to_show_dashboard</identifier>
<device_only>DeviceVendor::LOGITECH, DeviceProduct::USB_Receiver</device_only>
<autogen>__KeyToKey__
KeyCode::D, ModifierFlag::COMMAND_L,
KeyCode::F12
</autogen>
</item>
</item>
</item>
</root>
答案3
当我按下 Microsoft Bluetooth Wireless Mouse 5000 的“返回”按钮时,我能够阻止 Expose 打开System Preferences -> Mission Control -> Mouse Button 4 -> -
。