mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-23 00:36:42 -10:00
The window's input context - and so the IME - is attached only while a line of text is open; that code moves from win32_common.c to gfx/common/win32_ime.h, unchanged, as win32_ime_set(), _post() and _sync(), so that a test can drive the same code. samples/input/win32_ime builds with mingw-w64 and runs under Wine in the Wine input job. As RetroArch does with threaded video, the window is made and pumped on its own thread, a line of text is opened and closed from another, and the window is asked on its own thread whether it has an input context: none when made with no line open, one once a line is opened, none once it is closed, one when made while a line is open, and closing a closed line posts nothing. With the header changed to keep the context always, the test fails.