From 76e66caa9185657bd6fbf1fdae25c481ce18d23d Mon Sep 17 00:00:00 2001 From: "regicidal.plutophage" <36969337+regicidalplutophage@users.noreply.github.com> Date: Sun, 10 Nov 2024 15:33:15 +0300 Subject: [PATCH] Add __init__() to KMKKeyboard --- kmk/kmk_keyboard.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/kmk/kmk_keyboard.py b/kmk/kmk_keyboard.py index dd9316845..7bdc74918 100644 --- a/kmk/kmk_keyboard.py +++ b/kmk/kmk_keyboard.py @@ -33,7 +33,20 @@ class Sandbox: active_layers = None -class KMKKeyboard: +class KMKKeyboard: def __init__( + self, + keymap=[], + coord_mapping=None, + matrix=None, + modules=[], + extensions=[], + ): + self.keymap = keymap + self.coord_mapping = coord_mapping + self.matrix = matrix + self.modules = modules + self.extensions = extensions + ##### # User-configurable keymap = []