p1pkin / demul

Automatically exported from code.google.com/p/demul
96 stars 19 forks source link

Input on 2 screens within the same PC. #485

Open whitebabylon opened 4 years ago

whitebabylon commented 4 years ago

I have two Demul NAOMI emulators running on the same PC. Virtual On (VONOT.zip) is able to connect and do multiplayer. However, only one window accepts input at the same time. When using emulators like Sega Model 2, it listens for inputs even when the window is not active. I have tried to use SPY++ on windows to find out how it handles inputs. Replicating the POST MESSAGE through C# code (user32.dll POSTMESSAGE) I can get the thread to replicate the post message for inputs, however, it doesn't work even though to me it looks identical. I know there is a way when coding to block the messaging queue in a windows application when it is not the one with focus. Is there any way to allow DEMUL to continue receiving inputs when not in focus? Even if a separate back-ground app is sending it. Or, just have it always listening when not in focus similar to Sega Model 2?