Fix window display initialization in KeyLogger and MiceMaze
This commit is contained in:
@@ -9,6 +9,9 @@ class KeyLogger:
|
||||
def __init__(self):
|
||||
# Initialize SDL2
|
||||
sdl2.ext.init(joystick=True, video=True, audio=False)
|
||||
# Initialize joystick support
|
||||
sdl2.SDL_Init(sdl2.SDL_INIT_JOYSTICK)
|
||||
sdl2.SDL_JoystickOpen(0)
|
||||
self.window = sdl2.ext.Window("Key Logger", size=(640, 480))
|
||||
self.window.show()
|
||||
self.running = True
|
||||
|
||||
Reference in New Issue
Block a user