pqrs-org / Karabiner-archived

Karabiner (KeyRemap4MacBook) is a powerful utility for keyboard customization.
https://pqrs.org/osx/karabiner/
The Unlicense
3.82k stars 309 forks source link

Multi-touch usability #820

Open Madd0g opened 7 years ago

Madd0g commented 7 years ago

Hi, I'm wondering what is possible with multi-touch. I'm relatively new to Karabiner XMLs so I may not fully understand what I'm doing.

my setup

  1. I wanted to try to use the half-qwerty keyboard but with one-finger touch as a "modifier" instead of space, but couldn't find a way to do it. The 1-finger is set to "notsave.thumb1", but how can I use it? It's not a modifier, there can only be one identifier so I can't test if "half-qwerty" is on and notsave.thumb1 is pressed.

I tried doing things like:

<item hidden="true">
    <identifier vk_config="true">notsave.thumb1</identifier>
    <autogen>__ShowStatusMessage__ finger down</autogen>
    <autogen>
            __KeyToKey__
            KeyCode::VK_NONE,
                        KeyCode::VK_CONFIG_TOGGLE_notsave_half_qwerty
    </autogen>
</item>

and then <config_only>notsave.half_qwerty</config_only>

  1. I tried to find a way to transform a single two-finger touch (notsave.thumb2) to a middle-click of the mouse, is that possible? I tried doing this but maybe it's silly to think VK_NONE should work in these cases
<item hidden="true">
    <identifier vk_config="true">notsave.thumb2</identifier>
    <autogen>__ShowStatusMessage__ Two finger down</autogen>
    <autogen>
            __KeyToKey__
            KeyCode::VK_NONE,
            PointingButton::MIDDLE,
    </autogen>
</item>

Thanks