forked from zmkfirmware/zmk
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
114 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
title: Mouse Move Behavior | ||
sidebar_label: Mouse Move | ||
--- | ||
|
||
## Summary | ||
|
||
Mouse move behavior allows to send keycode signals of mouse movement. | ||
|
||
Please visit view [`dt-bindings/zmk/mouse.h`](https://github.com/zmkfirmware/zmk/blob/main/app/include/dt-bindings/zmk/mouse.h) for a comprehensive list of signals. | ||
|
||
## Keycode Defines | ||
|
||
To make it easier to encode the HID keycode numeric values, most keymaps include | ||
the [`dt-bindings/zmk/mouse.h`](https://github.com/zmkfirmware/zmk/blob/main/app/include/dt-bindings/zmk/mouse.h) header | ||
provided by ZMK near the top: | ||
|
||
``` | ||
#include <dt-bindings/zmk/mouse.h> | ||
``` | ||
|
||
Doing so makes a set of defines such as `MOVE_UP`, `MOVE_DOWN`, `MOVE_LEFT` and `MOVE_RIGHT` available for use with these behaviors. | ||
|
||
## Mouse press | ||
|
||
The "mouse move" behavior sends standard keycodes on press/release. | ||
|
||
### Behavior Binding | ||
|
||
- Reference: `&mmv` | ||
- Parameter: The keycode usage ID. | ||
|
||
Example: | ||
|
||
``` | ||
&mmv MOVE_UP | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
title: Mouse Press Behavior | ||
sidebar_label: Mouse Press | ||
--- | ||
|
||
## Summary | ||
|
||
Mouse press behavior allows to send keycode presses and releases of mouse buttons. | ||
|
||
Please visit view [`dt-bindings/zmk/mouse.h`](https://github.com/zmkfirmware/zmk/blob/main/app/include/dt-bindings/zmk/mouse.h) for a comprehensive list. | ||
|
||
## Keycode Defines | ||
|
||
To make it easier to encode the HID keycode numeric values, most keymaps include | ||
the [`dt-bindings/zmk/mouse.h`](https://github.com/zmkfirmware/zmk/blob/main/app/include/dt-bindings/zmk/mouse.h) header | ||
provided by ZMK near the top: | ||
|
||
``` | ||
#include <dt-bindings/zmk/mouse.h> | ||
``` | ||
|
||
Doing so makes a set of defines such as `LCLK`, `RCLK`, etc. available for use with these behaviors | ||
|
||
## Mouse press | ||
|
||
The "mouse press" behavior sends standard keycodes on press/release. | ||
|
||
### Behavior Binding | ||
|
||
- Reference: `&mp` | ||
- Parameter: The keycode usage ID. | ||
|
||
Example: | ||
|
||
``` | ||
&mp LCLK | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
title: Mouse Wheel Behavior | ||
sidebar_label: Mouse Wheel | ||
--- | ||
|
||
## Summary | ||
|
||
Mouse wheel behavior allows to send keycode signals of mouse wheel scrolling. | ||
|
||
## Keycode Defines | ||
|
||
To make it easier to encode the HID keycode numeric values, most keymaps include | ||
the [`dt-bindings/zmk/mouse.h`](https://github.com/zmkfirmware/zmk/blob/main/app/include/dt-bindings/zmk/mouse.h) header | ||
provided by ZMK near the top: | ||
|
||
``` | ||
#include <dt-bindings/zmk/mouse.h> | ||
``` | ||
|
||
Doing so makes a set of defines such as `WHEEL_UP`, `WHEEL_DOWN`, `WHEEL_LEFT` and `WHEEL_RIGHT` available for use with these behaviors. | ||
|
||
## Mouse wheel | ||
|
||
The "mouse wheel" behavior sends standard keycodes on press/release. | ||
|
||
### Behavior Binding | ||
|
||
- Reference: `&mwh` | ||
- Parameter: The keycode usage ID. | ||
|
||
Example: | ||
|
||
``` | ||
&mwh WHEEL_UP | ||
``` |