Initialize SDL2 with joystick, video, and audio options in KeyLogger

This commit is contained in:
2025-08-19 15:45:28 +02:00
parent 9bc6f161d2
commit 06c5c84b06
+1 -1
View File
@@ -8,7 +8,7 @@ import sdl2.ext
class KeyLogger:
def __init__(self):
# Initialize SDL2
sdl2.ext.init()
sdl2.ext.init(joystick=True, video=True, audio=False)
self.window = sdl2.ext.Window("Key Logger", size=(640, 480))
self.window.show()
self.running = True