qmk_firmware/assets/features_mouse_keys.md.CifbxWOs.js

16 lines
21 KiB
JavaScript
Raw Normal View History

import { _ as _export_sfc, c as createElementBlock, o as openBlock, a8 as createStaticVNode } from "./chunks/framework.Clpp4x2N.js";
const __pageData = JSON.parse('{"title":"Mouse keys","description":"","frontmatter":{},"headers":[],"relativePath":"features/mouse_keys.md","filePath":"features/mouse_keys.md"}');
const _sfc_main = { name: "features/mouse_keys.md" };
const _hoisted_1 = /* @__PURE__ */ createStaticVNode('<h1 id="mouse-keys" tabindex="-1">Mouse keys <a class="header-anchor" href="#mouse-keys" aria-label="Permalink to &quot;Mouse keys&quot;"></a></h1><p>Mouse keys is a feature that allows you to emulate a mouse using your keyboard. You can move the pointer at different speeds, press 5 buttons and scroll in 8 directions.</p><h2 id="adding-mouse-keys-to-your-keyboard" tabindex="-1">Adding mouse keys to your keyboard <a class="header-anchor" href="#adding-mouse-keys-to-your-keyboard" aria-label="Permalink to &quot;Adding mouse keys to your keyboard&quot;"></a></h2><p>To use mouse keys, you must at least enable mouse keys support and map mouse actions to keys on your keyboard.</p><h3 id="enabling-mouse-keys" tabindex="-1">Enabling mouse keys <a class="header-anchor" href="#enabling-mouse-keys" aria-label="Permalink to &quot;Enabling mouse keys&quot;"></a></h3><p>To enable mouse keys, add the following line to your keymaps <code>rules.mk</code>:</p><div class="language-c vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">c</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">MOUSEKEY_ENABLE </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> yes</span></span></code></pre></div><h3 id="mapping-mouse-actions" tabindex="-1">Mapping mouse actions <a class="header-anchor" href="#mapping-mouse-actions" aria-label="Permalink to &quot;Mapping mouse actions&quot;"></a></h3><p>In your keymap you can use the following keycodes to map key presses to mouse actions:</p><table><thead><tr><th>Key</th><th>Aliases</th><th>Description</th></tr></thead><tbody><tr><td><code>QK_MOUSE_CURSOR_UP</code></td><td><code>MS_UP</code></td><td>Mouse cursor up</td></tr><tr><td><code>QK_MOUSE_CURSOR_DOWN</code></td><td><code>MS_DOWN</code></td><td>Mouse cursor down</td></tr><tr><td><code>QK_MOUSE_CURSOR_LEFT</code></td><td><code>MS_LEFT</code></td><td>Mouse cursor left</td></tr><tr><td><code>QK_MOUSE_CURSOR_RIGHT</code></td><td><code>MS_RGHT</code></td><td>Mouse cursor right</td></tr><tr><td><code>QK_MOUSE_BUTTON_1</code></td><td><code>MS_BTN1</code></td><td>Mouse button 1</td></tr><tr><td><code>QK_MOUSE_BUTTON_2</code></td><td><code>MS_BTN2</code></td><td>Mouse button 2</td></tr><tr><td><code>QK_MOUSE_BUTTON_3</code></td><td><code>MS_BTN3</code></td><td>Mouse button 3</td></tr><tr><td><code>QK_MOUSE_BUTTON_4</code></td><td><code>MS_BTN4</code></td><td>Mouse button 4</td></tr><tr><td><code>QK_MOUSE_BUTTON_5</code></td><td><code>MS_BTN5</code></td><td>Mouse button 5</td></tr><tr><td><code>QK_MOUSE_BUTTON_6</code></td><td><code>MS_BTN6</code></td><td>Mouse button 6</td></tr><tr><td><code>QK_MOUSE_BUTTON_7</code></td><td><code>MS_BTN7</code></td><td>Mouse button 7</td></tr><tr><td><code>QK_MOUSE_BUTTON_8</code></td><td><code>MS_BTN8</code></td><td>Mouse button 8</td></tr><tr><td><code>QK_MOUSE_WHEEL_UP</code></td><td><code>MS_WHLU</code></td><td>Mouse wheel up</td></tr><tr><td><code>QK_MOUSE_WHEEL_DOWN</code></td><td><code>MS_WHLD</code></td><td>Mouse wheel down</td></tr><tr><td><code>QK_MOUSE_WHEEL_LEFT</code></td><td><code>MS_WHLL</code></td><td>Mouse wheel left</td></tr><tr><td><code>QK_MOUSE_WHEEL_RIGHT</code></td><td><code>MS_WHLR</code></td><td>Mouse wheel right</td></tr><tr><td><code>QK_MOUSE_ACCELERATION_0</code></td><td><code>MS_ACL0</code></td><td>Set mouse acceleration to 0</td></tr><tr><td><code>QK_MOUSE_ACCELERATION_1</code></td><td><code>MS_ACL1</code></td><td>Set mouse acceleration to 1</td></tr><tr><td><code>QK_MOUSE_ACCELERATION_2</code></td><td><code>MS_ACL2</code></td><td>Set mouse acceleration to 2</td></tr></tbody></table><h2 id="configuring-mouse-keys" tabindex="-1">Configuring mouse keys <a class="header-anchor" href="#configuring-mouse-keys" aria-label="Permalink to &quot;Configuring mouse keys&quot;"></a></h2><p>Mouse keys supports three different modes t
const _hoisted_57 = [
_hoisted_1
];
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return openBlock(), createElementBlock("div", null, _hoisted_57);
}
const mouse_keys = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
export {
__pageData,
mouse_keys as default
};