From 06c5c84b06ebf868bc0c8a31e3d8d550ff48a245 Mon Sep 17 00:00:00 2001 From: Matteo Benedetto Date: Tue, 19 Aug 2025 15:45:28 +0200 Subject: [PATCH] Initialize SDL2 with joystick, video, and audio options in KeyLogger --- key.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/key.py b/key.py index 060c35b..fac27cf 100644 --- a/key.py +++ b/key.py @@ -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