Game Development Reference
In-Depth Information
DownArrowState.Text = “Up”;
}
if (_keyboard.KeyDown(Microsoft.DirectX.DirectInput.Key.RightArrow))
{
RightArrowState.Text = “Down”;
}
else
{
RightArrowState.Text = “Up”;
}
if (_keyboard.KeyDown(Microsoft.DirectX.DirectInput.Key.LeftArrow))
{
LeftArrowState.Text = “Down”;
}
else
{
LeftArrowState.Text = “Up”;
}
if (_keyboard.KeyDown(Microsoft.DirectX.DirectInput.Key.A))
{
AState.Text = “Down”;
}
else
{
AState.Text = “Up”;
}
if (_keyboard.KeyDown(Microsoft.DirectX.DirectInput.Key.D))
{
DState.Text = “Down”;
}
else
{
DState.Text = “Up”;
}
}
void MouseMovementCallback(int x,
int y,
int z,
Search Nedrilad ::




Custom Search