aboutsummaryrefslogtreecommitdiff
path: root/docs/mouse_keys.md
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2017-07-07 15:57:18 -0400
committerGitHub <noreply@github.com>2017-07-07 15:57:18 -0400
commit0787d70e55a668244445d9328f3cda2303cc6877 (patch)
treed2134fc159433f3cf4967d831a6b30de5630f744 /docs/mouse_keys.md
parent9de443cbf10ac41bc15762c9c83f138f51dd3b9a (diff)
parentecd3dbf085826459af9728b6529a504ba7d3de14 (diff)
downloadqmk_firmware-0787d70e55a668244445d9328f3cda2303cc6877.tar.gz
qmk_firmware-0787d70e55a668244445d9328f3cda2303cc6877.zip
Updates Documentation from #1444
Diffstat (limited to 'docs/mouse_keys.md')
-rw-r--r--docs/mouse_keys.md86
1 files changed, 75 insertions, 11 deletions
diff --git a/docs/mouse_keys.md b/docs/mouse_keys.md
index e8fa60c1f..560bd0470 100644
--- a/docs/mouse_keys.md
+++ b/docs/mouse_keys.md
@@ -1,17 +1,81 @@
1# Can I increase the speed of the mouse keys? 1# Mousekeys
2 2
3**Q:** The default speed for controlling the mouse with the keyboard is slow. I've tried increasing the mouse's sensitivity at work using xset m and it worked, although sometimes it changes by itself for some reason. At home, on Arch Linux, this does not change it. I've looked through the forums and resolved to use libinput using xinput but using that I only manage to change the speed of the mouse using the actual mouse. The speed of the mouse using the keyboard controls remained unchanged.
4Is there perhaps something I can input in the keymap.c to change the sensitivity? Or some other surefire way of increasing the speed?
5Thanks!
6 3
7**A:** In your keymap's config.h: 4Mousekeys is a feature that allows you to emulate a mouse using your keyboard. You can move the pointer around, click up to 5 buttons, and even scroll in all 4 directions. QMK uses the same algorithm as the X Window System MouseKeysAccel feature. You can read more about it [on Wikipedia](https://en.wikipedia.org/wiki/Mouse_keys).
5
6## Adding Mousekeys To a Keymap
7
8There are two steps to adding Mousekeys support to your keyboard. You must enable support in the Makefile and you must map mouse actions to keys on your keyboard.
9
10### Adding Mousekeys support in the `Makefile`
11
12To add support for Mousekeys you simply need to add a single line to your keymap's `Makefile`:
13
14```
15MOUSEKEY_ENABLE = yes
16```
17
18You can see an example here: https://github.com/qmk/qmk_firmware/blob/master/keyboards/clueboard/keymaps/mouse_keys/Makefile
19
20### Mapping Mouse Actions To Keyboard Keys
21
22You can use these keycodes within your keymap to map button presses to mouse actions:
23
24|Long Name|Short Name|Description|
25|---------|----------|-----------|
26|KC_MS_UP|KC_MS_U|Mouse Cursor Up|
27|KC_MS_DOWN|KC_MS_D|Mouse Cursor Down|
28|KC_MS_LEFT|KC_MS_L|Mouse Cursor Left|
29|KC_MS_RIGHT|KC_MS_R|Mouse Cursor Right|
30|KC_MS_BTN1|KC_BTN1|Mouse Button 1|
31|KC_MS_BTN2|KC_BTN2|Mouse Button 2|
32|KC_MS_BTN3|KC_BTN3|Mouse Button 3|
33|KC_MS_BTN4|KC_BTN4|Mouse Button 4|
34|KC_MS_BTN5|KC_BTN5|Mouse Button 5|
35|KC_MS_WH_UP|KC_WH_U|Mouse Wheel Up|
36|KC_MS_WH_DOWN|KC_WH_D|Mouse Wheel Down|
37|KC_MS_WH_LEFT|KC_WH_L|Mouse Wheel Left|
38|KC_MS_WH_RIGHT|KC_WH_R|Mouse Wheel Right|
39|KC_MS_ACCEL0|KC_ACL0|Set Mouse Acceleration Speed to 0|
40|KC_MS_ACCEL1|KC_ACL1|Set Mouse Acceleration Speed to 1|
41|KC_MS_ACCEL2|KC_ACL2|Set Mouse Acceleration Speed to 2|
42
43You can see an example in the `_ML` here: https://github.com/qmk/qmk_firmware/blob/master/keyboards/clueboard/keymaps/mouse_keys/keymap.c#L46
44
45## Configuring the behavior of Mousekeys
46
47The default speed for controlling the mouse with the keyboard is intentionaly slow. You can adjust these parameters by adding these settings to your keymap's `config.h` file. All times are specified in miliseconds (ms).
8 48
9``` 49```
10#define MOUSEKEY_INTERVAL 20 50#define MOUSEKEY_DELAY 300
11#define MOUSEKEY_DELAY 0 51#define MOUSEKEY_INTERVAL 50
12#define MOUSEKEY_TIME_TO_MAX 60 52#define MOUSEKEY_MAX_SPEED 10
13#define MOUSEKEY_MAX_SPEED 7 53#define MOUSEKEY_TIME_TO_MAX 20
14#define MOUSEKEY_WHEEL_DELAY 0 54#define MOUSEKEY_WHEEL_MAX_SPEED 8
55#define MOUSEKEY_WHEEL_TIME_TO_MAX 40
15``` 56```
16 57
17Tweak away. A lower interval or higher max speed will effectively make the mouse move faster. Time-to-max controls acceleration. (See [this Reddit thread for the original discussion](https://www.reddit.com/r/ErgoDoxEZ/comments/61fwr2/a_reliable_way_to_increase_the_speed_of_the_mouse/)). 58
59### `MOUSEKEY_DELAY`
60
61When one of the mouse movement buttons is pressed this setting is used to define the delay between that button press and the mouse cursor moving. Some people find that small movements are impossible if this setting is too low, while settings that are too high feel sluggish.
62
63### `MOUSEKEY_INTERVAL`
64
65When a movement key is held down this specifies how long to wait between each movement report. Lower settings will translate into an effectively higher mouse speed.
66
67### `MOUSEKEY_MAX_SPEED`
68
69As a movement key is held down the speed of the mouse cursor will increase until it reaches `MOUSEKEY_MAX_SPEED`.
70
71### `MOUSEKEY_TIME_TO_MAX`
72
73How long you want to hold down a movement key for until `MOUSEKEY_MAX_SPEED` is reached. This controls how quickly your cursor will accelerate.
74
75### `MOUSEKEY_WHEEL_MAX_SPEED`
76
77The top speed for scrolling movements.
78
79### `MOUSEKEY_WHEEL_TIME_TO_MAX`
80
81How long you want to hold down a scroll key for until `MOUSEKEY_WHEEL_MAX_SPEED` is reached. This controls how quickling your scrolling will accelerate. \ No newline at end of file