What doesn't work?
I am using PySDL2 and skia-python to create a window and in my event loop I am getting completely different values than expected,
SDL_QUIT is still 0x100 but events like mouse click, scroll are being registered as SDL_KEYMAPCHANGED or 0x304
How To Reproduce
This is my event loop
import sdl2 as sdl
from ctypes import byref as pointer
def sdl_event_loop():
event = sdl.SDL_Event()
running = True
while running:
event_pointer = pointer(event)
pending_events = sdl.SDL_PollEvent(event_pointer)
while pending_events:
# QUIT HANDLER
if event.type == sdl.SDL_QUIT:
running = False
sdl.SDL_Quit()
break
# UPDATE PENDING EVENTS
pending_events = sdl.SDL_PollEvent(event_pointer)
sdl.SDL_WaitEvent(event_pointer)
What doesn't work? I am using PySDL2 and skia-python to create a window and in my event loop I am getting completely different values than expected,
SDL_QUIT
is still0x100
but events like mouse click, scroll are being registered asSDL_KEYMAPCHANGED
or0x304
How To Reproduce This is my event loop
If necessary the entire code is present here
Platform: