summaryrefslogtreecommitdiff
path: root/data/schemas
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2022-11-13 08:05:46 -0800
committerGitHub <noreply@github.com>2022-11-14 03:05:46 +1100
commitd3073ef4943c70a3942ac91bb46fdc1a90f9e566 (patch)
treef04d3e5b85c31ba913c8401e6711958801db1825 /data/schemas
parent8812872794b5fb09e6bbbe47a58cc7dbcaca18a7 (diff)
Add pointing device support to data driven config (#18215)
Co-authored-by: Joel Challis <git@zvecr.com>
Diffstat (limited to 'data/schemas')
-rw-r--r--data/schemas/keyboard.jsonschema63
1 files changed, 63 insertions, 0 deletions
diff --git a/data/schemas/keyboard.jsonschema b/data/schemas/keyboard.jsonschema
index daf54141a8..d5f4f392d7 100644
--- a/data/schemas/keyboard.jsonschema
+++ b/data/schemas/keyboard.jsonschema
@@ -363,6 +363,48 @@
}
}
},
+ "pointing_device": {
+ "type": "object",
+ "properties": {
+ "enabled": {"type": "boolean"},
+ "driver": {"type": "string"},
+ "auto_mouse": {
+ "type": "object",
+ "properties": {
+ "enabled": {"type": "boolean"},
+ "default_layer": {"type": "qmk.definitions.v1#/unsigned_int_8"},
+ "time": {"type": "qmk.definitions.v1#/unsigned_int"},
+ "delay": {"type": "qmk.definitions.v1#/unsigned_int"},
+ "debounce": {"type": "qmk.definitions.v1#/unsigned_int"}
+ }
+ }
+ "pins": {
+ "type": "object",
+ "additionalProperties": false,
+ "properties": {
+ "motion": {"$ref": "qmk.definitions.v1#/mcu_pin"},
+ "cs": {"$ref": "qmk.definitions.v1#/mcu_pin"},
+ "sdio": {"$ref": "qmk.definitions.v1#/mcu_pin"},
+ "sclk": {"$ref": "qmk.definitions.v1#/mcu_pin"}
+ }
+ },
+ "throttle": {"$ref": "qmk.definitions.v1#/unsigned_int_8"},
+ "invert_x": {"type": "boolean"},
+ "invert_y": {"type": "boolean"},
+ "gestures": {
+ "type": "object",
+ "properties": {
+ "cursor_glide": {"type": "boolean"},
+ "scroll": {"type": "boolean"}
+ }
+ },
+ "rotation": {
+ "type": "integer",
+ "minimum": 0,
+ "enum": [0, 90, 180, 270]
+ }
+ }
+ },
"rgb_matrix": {
"type": "object",
"properties": {
@@ -544,6 +586,26 @@
"type": "string",
"enum": ["eeprom", "left", "matrix_grid", "pin", "right"]
},
+ "pointing_device": {
+ "right": {
+ "type": "object",
+ "additionalProperties": false,
+ "type": "object",
+ "properties": {
+ "side": {
+ "type": "string",
+ "enum": ["left", "right", "combined"]
+ },
+ "invert_x": {"type": "boolean"},
+ "invert_y": {"type": "boolean"},
+ "rotation": {
+ "type": "integer",
+ "minimum": 0,
+ "enum": [0, 90, 180, 270]
+ }
+ }
+ }
+ },
"soft_serial_pin": {"$ref": "qmk.definitions.v1#/mcu_pin"},
"soft_serial_speed": {
"type": "integer",
@@ -560,6 +622,7 @@
},
"sync_matrix_state": {"type": "boolean"},
"sync_modifiers": {"type": "boolean"},
+ "sync_pointing": {"type": "boolean"},
"watchdog": {"type": "boolean"},
"watchdog_timeout": {"$ref": "qmk.definitions.v1#/unsigned_int"}
}