qmk_firmware/assets/features_mouse_keys.md.C3P3pYuE.js

16 lines
20 KiB
JavaScript
Raw Normal View History

import { _ as _export_sfc, c as createElementBlock, o as openBlock, a8 as createStaticVNode } from "./chunks/framework.DyMmIvSC.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>KC_MS_UP</code></td><td><code>KC_MS_U</code></td><td>Move cursor up</td></tr><tr><td><code>KC_MS_DOWN</code></td><td><code>KC_MS_D</code></td><td>Move cursor down</td></tr><tr><td><code>KC_MS_LEFT</code></td><td><code>KC_MS_L</code></td><td>Move cursor left</td></tr><tr><td><code>KC_MS_RIGHT</code></td><td><code>KC_MS_R</code></td><td>Move cursor right</td></tr><tr><td><code>KC_MS_BTN1</code></td><td><code>KC_BTN1</code></td><td>Press button 1</td></tr><tr><td><code>KC_MS_BTN2</code></td><td><code>KC_BTN2</code></td><td>Press button 2</td></tr><tr><td><code>KC_MS_BTN3</code></td><td><code>KC_BTN3</code></td><td>Press button 3</td></tr><tr><td><code>KC_MS_BTN4</code></td><td><code>KC_BTN4</code></td><td>Press button 4</td></tr><tr><td><code>KC_MS_BTN5</code></td><td><code>KC_BTN5</code></td><td>Press button 5</td></tr><tr><td><code>KC_MS_BTN6</code></td><td><code>KC_BTN6</code></td><td>Press button 6</td></tr><tr><td><code>KC_MS_BTN7</code></td><td><code>KC_BTN7</code></td><td>Press button 7</td></tr><tr><td><code>KC_MS_BTN8</code></td><td><code>KC_BTN8</code></td><td>Press button 8</td></tr><tr><td><code>KC_MS_WH_UP</code></td><td><code>KC_WH_U</code></td><td>Move wheel up</td></tr><tr><td><code>KC_MS_WH_DOWN</code></td><td><code>KC_WH_D</code></td><td>Move wheel down</td></tr><tr><td><code>KC_MS_WH_LEFT</code></td><td><code>KC_WH_L</code></td><td>Move wheel left</td></tr><tr><td><code>KC_MS_WH_RIGHT</code></td><td><code>KC_WH_R</code></td><td>Move wheel right</td></tr><tr><td><code>KC_MS_ACCEL0</code></td><td><code>KC_ACL0</code></td><td>Set speed to 0</td></tr><tr><td><code>KC_MS_ACCEL1</code></td><td><code>KC_ACL1</code></td><td>Set speed to 1</td></tr><tr><td><code>KC_MS_ACCEL2</code></td><td><code>KC_ACL2</code></td><td>Set speed 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 to move the cursor:</p><ul><li><strong>Accelerated (default):</strong> Holding movement keys accelerates the cursor until it reaches its maximum speed.</li><li><strong>Kinetic:</strong> Holding movem
const _hoisted_53 = [
_hoisted_1
];
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return openBlock(), createElementBlock("div", null, _hoisted_53);
}
const mouse_keys = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
export {
__pageData,
mouse_keys as default
};