Hi,
I’m trying to use an embed standalone player in a windows Form.
The command line -parentHWND works.
But I have a problem with my mouse inputs.
Input.GetMouseButton and Input.mousePosition are well detected but I can’t get drag information.
Input.GetAxis(“Mouse X”) and Input.GetAxis(“Mouse ScrollWheel”) are always 0.
The same player is working if I don’t embedded it in my form.
private void Form1_Load(object sender, EventArgs e)
{
process = new Process();
process.StartInfo.FileName = @".\Player.exe";
process.StartInfo.Arguments = "-parentHWND " + panelAx.Handle.ToInt32() + " " + Environment.CommandLine;
process.StartInfo.UseShellExecute = true;
process.StartInfo.CreateNoWindow = true;
process.Start();
}
I think my form is intercepting windows messages.
Thanks,