private static MouseApi.MouseKeybdHardwareInputUnion MouseInput(int x, int y, uint data, uint t, uint flag) { var mi = new MouseApi.MOUSEINPUT { dx = x, dy = y, mouseData = data, time = t, dwFlags = flag }; var iu = new MouseApi.MouseKeybdHardwareInputUnion { mi = mi }; return iu; }
private static MouseApi.MouseKeybdHardwareInputUnion MouseInput(int x, int y, uint data, uint t, uint flag) { var mi = new MouseApi.MOUSEINPUT { dx = x, dy = y, mouseData = data, time = t, dwFlags = flag }; var iu = new MouseApi.MouseKeybdHardwareInputUnion { mi = mi }; return(iu); }