Docs updated to v0.8.4

This commit is contained in:
cyber-sushi 2024-05-19 07:13:12 +02:00
parent 794dbb860e
commit b73ed3ee48

View file

@ -127,11 +127,12 @@ If you want a non-modifier key to act as a modifier without remapping it for tha
Keep in mind that if you want to use modifiers across multiple devices (e.g. `KEY_LEFTCTRL` on your keyboard and `BTN_RIGHT` on your mouse), both devices will have to be read by Makima and thus both will need a config file, even if empty. Having a config file is just a way to tell Makima "Hey, read this device!".
#### Mixed bindings:
When declaring a binding, you can put a dash in front of the key on the left side to tell Makima that when you press that key, it should mix the output events with whatever other modifier is pressed.
When declaring a binding, you can put a dash (`-`) in front of the key on the left side (e.g. `-KEY_A`) to tell Makima that when you press that key, it should mix the output events with whatever other modifier is pressed.
This means that, for example, you can bind `BTN_SELECT-BTN_TL2 = ["KEY_LEFTALT"]` and `-BTN_TR2 = ["KEY_TAB"]` to simulate the Alt-Tab sequence: press the buttons in the first binding, and then tap `TR2` to advance in the Alt-Tab menu.
If the key with the dash in front is pressed alone, its behavior will depend on the `CHAIN_ONLY` settings: if set to `"true"` (default) it will ignore the command, if set to `"false"`, it will still fire the designated event.
If the key with the dash in front is pressed alone, its behavior will depend on the `CHAIN_ONLY` settings: if set to `"true"` (default) it will ignore the keypress, if set to `"false"`, it will still fire the designated event.\
You can declare both a `-BTN_TR2` and a `BTN_TR2` binding: in this case, the first will fire when chained and the second will fire when used alone (assuming `CHAIN_ONLY` is set to`"true"`).
#### Axis events:
Axis events such as scroll wheels and analog stick movements are hardcoded, currently you can use the following: