Initialize SDL2 with joystick, video, and audio options in KeyLogger
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user