Mapping scroll wheel tilt button to keystroke

412 views
Skip to first unread message

rard...@gmail.com

unread,
Sep 25, 2015, 12:09:21 AM9/25/15
to Karabiner
Hello,

I'm looking to map my scroll wheel tilt button to keystroke. After installing and fiddling with the configuration file an hour ago, I gave up lol.

Event viewer shows the following results from the left and right tilt buttons, respectively:
eventType:scroll          code:           name:                flags:                                   misc:dx:0.100 dy:0.000 dz:0.000
eventType:scroll          code:           name:                flags:                                   misc:dx:-0.100 dy:0.000 dz:0.000

Here's what I put in the private.xml:
<?xml version="1.0" encoding="utf-8"?>
<root>
<item>
<name>Logitech M705 Mouse</name>
        <devicevendordef>
            <vendorname>LOGITECH</vendorname>
            <vendorid>0x046d</vendorid>
        </devicevendordef>
        <deviceproductdef>
            <productname>USB_Receiver</productname>
            <productid>0xc52b</productid>
        </deviceproductdef>
        <item>
            <name>Tilt left to previous tab</name>
            <identifier>private.tiltleft_previoustab</identifier>
            <autogen>
            --KeyToKey--
                KeyCode::VK_MOUSEKEY_SCROLL_LEFT,
                KeyCode::BRACKET_LEFT, ModifierFlag::COMMAND_L, ModifierFlag::SHIFT_L
            </autogen>
        </item>
        <item>
            <name>Tilt right to next tab</name>
            <identifier>private.tiltright_nexttab</identifier>
            <autogen>
            --KeyToKey--
                KeyCode::VK_MOUSEKEY_SCROLL_RIGHT,
                KeyCode::BRACKET_RIGHT, ModifierFlag::COMMAND_R, ModifierFlag::SHIFT_R
            </autogen>
        </item>
</item>
</root>

Anyone care to lift my frustation?

Thank you!

Raden Ardhian

unread,
Sep 25, 2015, 12:37:15 AM9/25/15
to osx-ka...@googlegroups.com
Whoops sorry. Everything worked now after a bit of patience..

<?xml version="1.0" encoding="utf-8"?>
<root>
<item>
<name>Logitech M705 Mouse</name>
<devicevendordef>
<vendorname>LOGITECH</vendorname>
<vendorid>0x046d</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>USB_Receiver</productname>
<productid>0xc52b</productid>
</deviceproductdef>
<item>
<name>Tilt left to previous tab</name>
<identifier>private.tiltleft_previoustab</identifier>
<autogen>
            __ScrollWheelToKey__
                ScrollWheel::LEFT,
                KeyCode::BRACKET_LEFT, ModifierFlag::COMMAND_L, ModifierFlag::SHIFT_L
            </autogen>
</item>
<item>
<name>Tilt right to next tab</name>
<identifier>private.tiltright_nexttab</identifier>
<autogen>
            __ScrollWheelToKey__
                ScrollWheel::RIGHT,
                KeyCode::BRACKET_RIGHT, ModifierFlag::COMMAND_R, ModifierFlag::SHIFT_R
            </autogen>
</item>
<item>
<name>Button 4 to mission control</name>
<identifier>private.deviceproductdef_button_missioncontrol</identifier>
<device_only>DeviceVendor::LOGITECH, DeviceProduct::USB_Receiver</device_only>
<autogen>
__PointingButtonToKey__
                    PointingButton::BUTTON4,
                    KeyCode::CURSOR_UP, ModifierFlag::CONTROL_L
        </autogen>
</item>
<item>
<name>Button 5 to close window</name>
<identifier>private.deviceproductdef_button_closewindow</identifier>
<device_only>DeviceVendor::LOGITECH, DeviceProduct::USB_Receiver</device_only>
<autogen>
__PointingButtonToKey__
                    PointingButton::BUTTON5,
                    KeyCode::W, ModifierFlag::COMMAND_L
        </autogen>
</item>
<item>
<name>Button 6 to back</name>
<identifier>private.deviceproductdef_button_back</identifier>
<device_only>DeviceVendor::LOGITECH, DeviceProduct::USB_Receiver</device_only>
<autogen>
__PointingButtonToKey__
                    PointingButton::BUTTON6,
                    KeyCode::BRACKET_LEFT, ModifierFlag::COMMAND_L
        </autogen>
</item>
</item>
</root>


--
You received this message because you are subscribed to a topic in the Google Groups "Karabiner" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/osx-karabiner/8zRIID-zqKM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to osx-karabine...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osx-karabiner/bbe80434-bbd4-4379-88ae-b0bda795fac4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages