forked from kofal.net/zmk
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user