OSDN Git Service

through input when no focus
authorU-i7\gimy <gimy@users.sourceforge.jp>
Thu, 27 Aug 2009 13:37:34 +0000 (22:37 +0900)
committerU-i7\gimy <gimy@users.sourceforge.jp>
Thu, 27 Aug 2009 13:37:34 +0000 (22:37 +0900)
engine.cpp

index 5f012dd..25f40d8 100644 (file)
@@ -1121,7 +1121,9 @@ rewait:
 \r
                if (!m_currentFocusOfThread ||\r
                                !m_currentKeymap) {\r
-#ifndef NO_DRIVER\r
+#ifdef NO_DRIVER\r
+                       injectInput(&kid, NULL);\r
+#else\r
                        WriteFile(m_device, &kid, sizeof(kid), &len, &m_ol);\r
                        GetOverlappedResult(m_device, &m_ol, &len, TRUE);\r
 #endif // !NO_DRIVER\r