aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2024-04-24 13:59:57 +1000
committerGitHub <noreply@github.com>2024-04-24 04:59:57 +0100
commitc505ea48b37ce6b1a725dbfe13842007785f5ef2 (patch)
treebc2cc589d54f038e5938eb3e7b5e2b014e0c80e5 /data
parentd9740c9de11d41493149bee2e712aee536d40b25 (diff)
Add haptic driver to keyboard.json schema (#23591)
Diffstat (limited to 'data')
-rw-r--r--data/mappings/info_rules.hjson1
-rw-r--r--data/schemas/keyboard.jsonschema9
2 files changed, 10 insertions, 0 deletions
diff --git a/data/mappings/info_rules.hjson b/data/mappings/info_rules.hjson
index fc25eb3328..35e2e8dfc0 100644
--- a/data/mappings/info_rules.hjson
+++ b/data/mappings/info_rules.hjson
@@ -23,6 +23,7 @@
"ENCODER_ENABLE": {"info_key": "encoder.enabled", "value_type": "bool"},
"ENCODER_DRIVER": {"info_key": "encoder.driver"},
"FIRMWARE_FORMAT": {"info_key": "build.firmware_format"},
+ "HAPTIC_DRIVER": {"info_key": "haptic.driver"},
"KEYBOARD_SHARED_EP": {"info_key": "usb.shared_endpoint.keyboard", "value_type": "bool"},
"LAYOUTS": {"info_key": "community_layouts", "value_type": "list"},
"LED_MATRIX_DRIVER": {"info_key": "led_matrix.driver"},
diff --git a/data/schemas/keyboard.jsonschema b/data/schemas/keyboard.jsonschema
index 25aaabcf4a..f3116fd271 100644
--- a/data/schemas/keyboard.jsonschema
+++ b/data/schemas/keyboard.jsonschema
@@ -387,6 +387,15 @@
}
}
},
+ "haptic": {
+ "type": "object",
+ "properties": {
+ "driver": {
+ "type": "string",
+ "enum": ["drv2605l", "solenoid"]
+ }
+ }
+ },
"leader_key": {
"type": "object",
"properties": {