Namespace: DeltaEngine.Input.Tests
Assembly: DeltaEngine.Input.Tests (in DeltaEngine.Input.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Input.Tests (in DeltaEngine.Input.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test] public void PressingGamePadButtonShowsCircle() { new FontText(Font.Default, "Press X on GamePad to show red circle", Rectangle.One); var ellipse = new Ellipse(new Rectangle(0.1f, 0.1f, 0.1f, 0.1f), Color.Red); new Command(() => ellipse.Center = Vector2D.Half).Add(new GamePadButtonTrigger( GamePadButton.X, State.Pressed)); new Command(() => ellipse.Center = Vector2D.Zero).Add(new GamePadButtonTrigger( GamePadButton.X, State.Released)); }
See Also