I need to know how to simulate keyboard input for keys W, S, A, D.
I've used SendKeys with no avail as well as the InputSimulator library with no fix.
What I'm trying to do is make it to where applications such as games (Battlefield, Natural Selection, ect. Newer FPS games) will register these simulated keys as real keystrokes. I'm trying to make a virtual controller program where external controls will register as keyboard inputs for these games.
Is there a way to manually simulate keyboard input like there is with something like this?
[DllImport("user32.dll",
CharSet = CharSet.Auto,
CallingConvention = CallingConvention.StdCall)]
public static extern void mouse_event(uint dwFlags,
uint dx,
uint dy,
int cButtons,
uint dwExtraInfo);