JanLunge / pog

A Kmk firmware flashing and configuration tool
https://pog.heaper.de/
MIT License
247 stars 16 forks source link

Feature request: Adding support for combo layers #16

Open doesntfazer opened 1 month ago

doesntfazer commented 1 month ago

It would be cool to see combo layers working. I use them on all of my keyboards, but it doesn't look like you can add them manually without breaking POG.

doesntfazer commented 1 month ago

https://github.com/KMKfw/kmk_firmware/blob/main/docs/en/combo_layers.md

doesntfazer commented 1 month ago

I was able to get it working by adding it manually to the kb.py file.


    def __init__(self, features=['basic']):
        if "basic" in features:
            from kmk.modules.layers import Layers; self.modules.append(Layers())
            from kmk.extensions.media_keys import MediaKeys; self.extensions.append(MediaKeys())
            combo_layers = {
            (1, 2): 3,
            }
        self.modules.append(Layers(combo_layers))
JanLunge commented 1 month ago

I will test this on my board so we can ship some demo code in the kb.py until it is available in the gui as well