Skip to content

Commit

Permalink
Docs review
Browse files Browse the repository at this point in the history
Co-authored-by: Cem Aksoylar <[email protected]>
  • Loading branch information
petejohanson and caksoylar authored Dec 10, 2024
1 parent 77850b0 commit 68692d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/docs/config/pointing.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Additional properties can be set on child nodes, which allows changing the setti
| ------------------ | ------------- | ------------------------------------------------------------------------------------------------ |
| `layers` | array | List of layer indexes. This config will apply if any layer in the list is active. |
| `input-processors` | phandle-array | List of input processors (with parameters) to apply to input events |
| `process-next` | bool | Whether to first apply the base input processors before the processors specific to this override |
| `process-next` | bool | Whether to continue applying other input processors after this override if it takes effect |

## Input Split

Expand Down
8 changes: 4 additions & 4 deletions docs/docs/keymaps/input-processors/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ Additional overrides can be added that only apply when the associated layer is a

:::note

Overrides are processed in the order they are declared, from top to bottom, _not_ in any way tied to the layers specified in the `layers` property.
Overrides are processed in the order they are declared, from top to bottom, followed by the base processors in the parent node. Their application order is _not_ in any way tied to the layers specified in the `layers` property.

:::

If you want to have later overrides, or your base processors applied _after_ your overrides, add the `inherit` property to your child node, e.g.:
By default, the first-defined override node that matches the layer specification will apply, in which case and any other overrides or the base processors will be skipped. If you add the `process-next;` property to a child node, the other processors will continue to be checked and applied even if that node's layer filter matches.

```dts
#include <input/processors.dtsi>
Expand All @@ -50,8 +50,8 @@ If you want to have later overrides, or your base processors applied _after_ you
scroller {
layers = <1>;
input-processors = <&zip_xy_to_scoll_mapper>;
inherit;
input-processors = <&zip_xy_to_scroll_mapper>;
process-next;
};
}
```
Expand Down

0 comments on commit 68692d5

Please sign in to comment.