1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-29 15:58:33 +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 { namespace MLEM.Input {
public class InputHandler { public class InputHandler {
public static readonly MouseButton[] MouseButtons = EnumHelper.GetValues<MouseButton>().ToArray();
public KeyboardState LastKeyboardState { get; private set; } public KeyboardState LastKeyboardState { get; private set; }
public KeyboardState KeyboardState { get; private set; } public KeyboardState KeyboardState { get; private set; }
public Keys[] PressedKeys { get; private set; } public Keys[] PressedKeys { get; private set; }

View file

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