here is my situation: we are writing an application that must transform Microsoft Kinect coordinates into keyboard and mouse events.
When we need to take control of the
You need to simulate input using SendInput. SendMessage and SendKeys tend to work at the level of windows messages - but DirectX apps don't run a traditional message loop.
There is a page on PInvoke.NET, but I have to confess, I've not tried to use it.
See also this thread on the GameDev.net site, where someone has worked with some of the "teething" issues that can be encountered specifically interacting with a DirectInput based application.