1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-06-13 17:43:50 +02:00
MLEM/Tests/GameImpl.cs

23 lines
653 B
C#
Raw Normal View History

using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;
using MLEM.Input;
2019-08-07 21:26:16 +02:00
using MLEM.Startup;
namespace Tests {
public class GameImpl : MlemGame {
protected override void Update(GameTime gameTime) {
base.Update(gameTime);
// Input tests
if (Input.IsKeyPressed(Keys.A))
Console.WriteLine("A was pressed");
if (Input.IsMouseButtonPressed(MouseButton.Left))
Console.WriteLine("Left was pressed");
if (Input.IsGamepadButtonPressed(0, Buttons.A))
Console.WriteLine("Gamepad A was pressed");
}
2019-08-07 21:26:16 +02:00
}
}