mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-10-31 21:00:51 +01:00
23 lines
No EOL
653 B
C#
23 lines
No EOL
653 B
C#
using System;
|
|
using Microsoft.Xna.Framework;
|
|
using Microsoft.Xna.Framework.Input;
|
|
using MLEM.Input;
|
|
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");
|
|
}
|
|
|
|
}
|
|
} |