We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be55232 commit 25824d7Copy full SHA for 25824d7
src_c/static.c
@@ -269,6 +269,12 @@ static struct PyModuleDef mod_pygame_static = {PyModuleDef_HEAD_INIT,
269
PyMODINIT_FUNC
270
PyInit_pygame_static()
271
{
272
+ // cannot fail here, and font_initialized is already set to 1 in font.c .
273
+ TTF_Init();
274
+
275
+ // for correct input in wasm worker
276
+ SDL_SetHint("SDL_EMSCRIPTEN_KEYBOARD_ELEMENT", "1");
277
278
load_submodule("pygame", PyInit_base(), "base");
279
load_submodule("pygame", PyInit_constants(), "constants");
280
load_submodule("pygame", PyInit_surflock(), "surflock");
0 commit comments