Skip to content

Commit

Permalink
[#22] Remove direct references to the keyboard from the emulator.
Browse files Browse the repository at this point in the history
  • Loading branch information
kosarev committed Mar 20, 2021
1 parent 5796ad1 commit f8268cc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions zx/_emulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f8268cc

Please sign in to comment.