1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-22 20:58:34 +01:00

this goes here

This commit is contained in:
Ellpeck 2019-09-04 21:10:51 +02:00
parent 5d701592a5
commit 90d04b8c57
2 changed files with 4 additions and 2 deletions

View file

@ -11,8 +11,6 @@ using MLEM.Misc;
namespace MLEM.Input {
public class InputHandler {
public static readonly MouseButton[] MouseButtons = EnumHelper.GetValues<MouseButton>().ToArray();
public KeyboardState LastKeyboardState { get; private set; }
public KeyboardState KeyboardState { get; private set; }
public Keys[] PressedKeys { get; private set; }

View file

@ -1,9 +1,13 @@
using System;
using System.Linq;
using Microsoft.Xna.Framework.Input;
using MLEM.Misc;
namespace MLEM.Input {
public static class MouseExtensions {
public static readonly MouseButton[] MouseButtons = EnumHelper.GetValues<MouseButton>().ToArray();
public static ButtonState GetState(this MouseState state, MouseButton button) {
switch (button) {
case MouseButton.Left: