Update macros.md

This commit is contained in:
Tobi 2021-07-25 10:36:00 +02:00 committed by sezanzeb
parent 07504d47fb
commit 04c7e93253

View File

@ -30,7 +30,7 @@ Examples:
- `mouse(right, 4)` which keeps moving the mouse while pressed.
Made out of `h(e(...))` internally
- `wheel(down, 1)` keeps scrolling down while held
- `set(foo, 1)` set "foo" to 1
- `set(foo, 1)` set ["foo"](https://en.wikipedia.org/wiki/Metasyntactic_variable) to 1
- `ifeq(foo, 1, k(x), k(y))` if "foo" is 1, write x, otherwise y
- `h()` does nothing as long as your key is held down
- `h(a)` holds down "a" as long as the key is pressed, just like a
@ -70,7 +70,7 @@ when the macro gets compiled.
## Combinations spanning multiple devices
For regular combinations on only single devices it is not required to
configure macros. See [readme/usage.md](usage.md).
configure macros. See [readme/usage.md](usage.md#combinations).
**Keyboard** `space` `set(foo, bar).h(space).set(foo, 0)`