seat: implement per-device keymaps
This commit is contained in:
parent
225995eb2f
commit
826f40adca
21 changed files with 293 additions and 71 deletions
|
|
@ -790,6 +790,10 @@
|
|||
"description": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
"keymap": {
|
||||
"description": "The keymap to use for this device.\n\nThis overrides the global keymap. The keymap becomes active when a key is pressed.\n\n- Example:\n\n ```toml\n [[inputs]]\n match.name = \"ZSA Technology Labs Inc ErgoDox EZ\"\n keymap.name = \"external\"\n ```\n",
|
||||
"$ref": "#/$defs/Keymap"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
|
|
|
|||
|
|
@ -1519,6 +1519,22 @@ The table has the following fields:
|
|||
|
||||
The value of this field should be an array of arrays of numbers.
|
||||
|
||||
- `keymap` (optional):
|
||||
|
||||
The keymap to use for this device.
|
||||
|
||||
This overrides the global keymap. The keymap becomes active when a key is pressed.
|
||||
|
||||
- Example:
|
||||
|
||||
```toml
|
||||
[[inputs]]
|
||||
match.name = "ZSA Technology Labs Inc ErgoDox EZ"
|
||||
keymap.name = "external"
|
||||
```
|
||||
|
||||
The value of this field should be a [Keymap](#types-Keymap).
|
||||
|
||||
|
||||
<a name="types-InputMatch"></a>
|
||||
### `InputMatch`
|
||||
|
|
|
|||
|
|
@ -1206,6 +1206,21 @@ Input:
|
|||
match.is-pointer = true
|
||||
transform-matrix = [[0.35, 0], [0, 0.35]]
|
||||
```
|
||||
keymap:
|
||||
ref: Keymap
|
||||
required: false
|
||||
description: |
|
||||
The keymap to use for this device.
|
||||
|
||||
This overrides the global keymap. The keymap becomes active when a key is pressed.
|
||||
|
||||
- Example:
|
||||
|
||||
```toml
|
||||
[[inputs]]
|
||||
match.name = "ZSA Technology Labs Inc ErgoDox EZ"
|
||||
keymap.name = "external"
|
||||
```
|
||||
|
||||
|
||||
AccelProfile:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue