Fix window display initialization in KeyLogger and MiceMaze

This commit is contained in:
2025-08-19 16:04:38 +02:00
parent 0468b216c0
commit 947d464afd
3 changed files with 6 additions and 2 deletions
+3
View File
@@ -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