Refactor based on recent discussion - Add back 'Layer Count'

This commit is contained in:
zvecr
2022-06-19 23:26:37 +01:00
parent d467ac8427
commit dab3a4fde0
4 changed files with 36 additions and 13 deletions
+18 -2
View File
@@ -24,6 +24,14 @@
return_constant: XAP_ROUTE_KEYMAP_CAPABILITIES
}
0x02: {
type: command
name: Get Layer Count
define: GET_LAYER_COUNT
description: Query maximum number of layers that can be addressed within the keymap.
return_type: u8
return_execute: keymap_get_layer_count
}
0x03: {
type: command
name: Get Keycode
define: GET_KEYMAP_KEYCODE
@@ -47,7 +55,7 @@
return_type: u16
return_execute: get_keymap_keycode
}
0x03: {
0x04: {
type: command
name: Get Encoder Keycode
define: GET_ENCODER_KEYCODE
@@ -98,6 +106,14 @@
return_constant: XAP_ROUTE_REMAPPING_CAPABILITIES
}
0x02: {
type: command
name: Get Layer Count
define: GET_DYNAMIC_LAYER_COUNT
description: Query maximum number of layers that can be addressed within the keymap.
return_type: u8
return_constant: DYNAMIC_KEYMAP_LAYER_COUNT
}
0x03: {
type: command
name: Set Keycode
define: SET_KEYMAP_KEYCODE
@@ -125,7 +141,7 @@
]
return_execute: dynamic_keymap_set_keycode
}
0x03: {
0x04: {
type: command
name: Set Encoder Keycode
define: SET_ENCODER_KEYCODE