From: U-i7\gimy Date: Thu, 27 Aug 2009 13:37:34 +0000 (+0900) Subject: through input when no focus X-Git-Tag: v0.02~9 X-Git-Url: http://git.sourceforge.jp/view?a=commitdiff_plain;h=8d8dafc27f1dbb599866fa9fe7af232a7da30c38;p=yamy%2Fyamy.git through input when no focus --- diff --git a/engine.cpp b/engine.cpp index 5f012dd..25f40d8 100644 --- a/engine.cpp +++ b/engine.cpp @@ -1121,7 +1121,9 @@ rewait: if (!m_currentFocusOfThread || !m_currentKeymap) { -#ifndef NO_DRIVER +#ifdef NO_DRIVER + injectInput(&kid, NULL); +#else WriteFile(m_device, &kid, sizeof(kid), &len, &m_ol); GetOverlappedResult(m_device, &m_ol, &len, TRUE); #endif // !NO_DRIVER