diff --git a/buildconfig/pygame-stubs/__init__.pyi b/buildconfig/pygame-stubs/__init__.pyi index e49890dfd0..fcdcac84c2 100644 --- a/buildconfig/pygame-stubs/__init__.pyi +++ b/buildconfig/pygame-stubs/__init__.pyi @@ -29,6 +29,7 @@ import pygame.pixelcopy import pygame.sndarray import pygame.surfarray import pygame.math +import pygame.fastevent # Other import pygame.scrap diff --git a/buildconfig/pygame-stubs/fastevent.pyi b/buildconfig/pygame-stubs/fastevent.pyi new file mode 100644 index 0000000000..2740816de8 --- /dev/null +++ b/buildconfig/pygame-stubs/fastevent.pyi @@ -0,0 +1,10 @@ +from typing import List +from pygame.event import EventType + +def init() -> None: ... +def get_init() -> bool: ... +def pump() -> None: ... +def wait() -> EventType: ... +def pool() -> EventType: ... +def get() -> List[EventType]: ... +def post(event: EventType) -> None: ...