From f8268cc1dcee67357403c7891929c5c5f80a4893 Mon Sep 17 00:00:00 2001 From: Ivan Kosarev Date: Sun, 21 Mar 2021 00:24:35 +0200 Subject: [PATCH] [#22] Remove direct references to the keyboard from the emulator. --- zx/_emulator.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/zx/_emulator.py b/zx/_emulator.py index 4c202ce..ea34788 100644 --- a/zx/_emulator.py +++ b/zx/_emulator.py @@ -72,10 +72,8 @@ def __init__(self, speed_factor=1.0, profile=None, devices=None): self.__events_to_signal = RunEvents.NO_EVENTS - self.__keyboard_state = Keyboard() - if devices is None: - devices = [self, TapePlayer(), self.__keyboard_state] + devices = [self, TapePlayer(), Keyboard()] # Don't even create the window on full throttle. if self.__speed_factor is not None: