Mouse input not updating in custom XNA/Winforms panel
Posted
by
ChocoMan
on Game Development
See other posts from Game Development
or by ChocoMan
Published on 2013-08-19T18:46:17Z
Indexed on
2013/10/19
4:15 UTC
Read the original article
Hit count: 722
I have a custom Panel residing within my WinForm. the custom Panel holds the XNA rendering. So far, I've rendered an 3D test model. What I'm doing now is trying to handle the input.Using a camera from another working game, keyboard input works fine moving the camera in all 6 directions. But when it comes to handling the mouse to yaw and pitch the camera, nothing happens. I've searched about to see if anyone has come across this problem, but found no testable solutions to my problem.
Does anyone understand as to what may be causing the Mouse not to be called when moved?
Within MainForm constructor:
public MainForm()
{
InitializeComponent();
Mouse.WindowHandle = panel3D.Handle;
}
Panel3D.cs
FreeCamera.cs
© Game Development or respective owner