Skip to content

Instantly share code, notes, and snippets.

@yamaya
Last active December 10, 2015 17:18
Show Gist options
  • Save yamaya/4466782 to your computer and use it in GitHub Desktop.
Save yamaya/4466782 to your computer and use it in GitHub Desktop.
KeyRemap4MacBookのprivate.xml
<?xml version="1.0"?>
<root>
<deviceproductdef>
<productname>KENSINGTON_USB_PS2_EXPERT_MOUSE</productname>
<productid>0x1015</productid>
</deviceproductdef>
<deviceproductdef>
<!-- MacBook Pro 15-inch Late 2008 -->
<productname>APPLE_INTERNAL_KEYBOARD_TRACKPAD_0x0238</productname>
<productid>0x0238</productid>
</deviceproductdef>
<list>
<item>
<name>Private Setting</name>
<list>
<item>
<name>Button4 Click to Fn_Lock</name>
<appendix>Kensington Expert Mouse Only</appendix>
<identifier>private.button4_click_to_fn_lock</identifier>
<device_only>DeviceVendor::KENSINGTON,DeviceProduct::KENSINGTON_USB_PS2_EXPERT_MOUSE</device_only>
<autogen>--PointingButtonToKey-- PointingButton::BUTTON4, KeyCode::VK_LOCK_FN</autogen>
</item>
<item>
<name>Pointing Device Cursor and ScrollWheel Preventing</name>
<appendix>Only MacBook Pro 15-inch Late 2008</appendix>
<list>
<item>
<name>Toggle Pointing Device Cursor and ScrollWheel Preventing</name>
<appendix>Command_R to Preventing</appendix>
<identifier>remap.custom_setting_priventpointingdevice</identifier>
<autogen>--KeyToKey-- KeyCode::COMMAND_R, KeyCode::VK_CONFIG_TOGGLE_remap_samples_droppointingrelativecursormove2</autogen>
</item>
<item>
<name>Core</name>
<appendix>DropPointingRelativeCursorMove and DropScrollWheel on Internal Trackpad.</appendix>
<appendix>(You need enable above setting)</appendix>
<identifier vk_config="true">remap.samples_droppointingrelativecursormove2</identifier>
<config_only>remap.custom_setting_priventpointingdevice</config_only>
<device_only>DeviceVendor::APPLE_COMPUTER,DeviceProduct::APPLE_INTERNAL_KEYBOARD_TRACKPAD_0x0238</device_only>
<autogen>--ShowStatusMessage-- Drop Pointing Device Cursor Move</autogen>
<autogen>--DropPointingRelativeCursorMove--</autogen>
<autogen>--DropScrollWheel--</autogen>
</item>
</list>
</item>
</list>
</item>
</list>
</root>
@yamaya
Copy link
Author

yamaya commented Jan 6, 2013

deviceproductdefはroot直下でいいのか?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment