Exemplo n.º 1
0
 // This gets called at the end of the program and must be present, as it cleans up resources
 public void shutDown()
 {
     controller.sendKeyUp(Microsoft.DirectX.DirectInput.Key.LeftShift); // Release latched key
     controller.sendKeyUp(Microsoft.DirectX.DirectInput.Key.LeftControl);
     controller.sendKeyUp(Microsoft.DirectX.DirectInput.Key.W);
     controller.sendKeyUp(Microsoft.DirectX.DirectInput.Key.S);
     controller.sendKeyUp(Microsoft.DirectX.DirectInput.Key.X);
     controller.sendKeyUp(Microsoft.DirectX.DirectInput.Key.Space);
     controller.UnInit();
     joystick.Release(1);
 }
 //this gets called at the end of the program and must be present, as it cleans up resources
 public void shutDown()
 {
     controller.UnInit();
     joystick.Release(1);
 }
Exemplo n.º 3
0
 //this gets called at the end of the program and must be present, as it cleans up resources
 public void shutDown()
 {
     controller.sendKeyUp(Microsoft.DirectX.DirectInput.Key.LeftControl);
     controller.UnInit();
     joystick.Release(1);
 }