feat(core): Make physical layout key rotation optional (#2770)

To be able to save on flash space, for layouts on space constrained
devices that don't require rotation, make key rotation props
optional behind a new Kconfig flag.
This commit is contained in:
Pete Johanson
2025-01-15 14:48:18 -07:00
committed by GitHub
parent 6941abc2af
commit c367d8f636
5 changed files with 19 additions and 3 deletions

View File

@@ -21,9 +21,11 @@ struct zmk_key_physical_attrs {
int16_t height;
int16_t x;
int16_t y;
#if IS_ENABLED(CONFIG_ZMK_PHYSICAL_LAYOUT_KEY_ROTATION)
int16_t rx;
int16_t ry;
int16_t r;
#endif
};
struct zmk_physical_layout {