From 583517199040d17f7daa43036d8d26f69508e1ee Mon Sep 17 00:00:00 2001 From: Jacob Gustafson <7557867+poikilos@users.noreply.github.com> Date: Sun, 13 Mar 2022 12:32:58 -0400 Subject: [PATCH] Provide the correct argument to request_keyboard. resolves #31 --- examples/camera/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/camera/main.py b/examples/camera/main.py index e230900..ff01b25 100644 --- a/examples/camera/main.py +++ b/examples/camera/main.py @@ -26,7 +26,7 @@ def build(self): self.camera.pos.z = 5 loader = OBJMTLLoader() obj = loader.load(obj_file, mtl_file) - self._keyboard = Window.request_keyboard(self._keyboard_closed, self) + self._keyboard = Window.request_keyboard(self._keyboard_closed, root) self._keyboard.bind(on_key_down=self._on_keyboard_down) scene.add(*obj.children)