Browse Source

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

master
Matteo Benedetto 4 months ago
parent
commit
06c5c84b06
  1. 2
      key.py

2
key.py

@ -8,7 +8,7 @@ import sdl2.ext
class KeyLogger: class KeyLogger:
def __init__(self): def __init__(self):
# Initialize SDL2 # 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 = sdl2.ext.Window("Key Logger", size=(640, 480))
self.window.show() self.window.show()
self.running = True self.running = True

Loading…
Cancel
Save