mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-26 06:28:35 +01:00
this goes here
This commit is contained in:
parent
5d701592a5
commit
90d04b8c57
2 changed files with 4 additions and 2 deletions
|
@ -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; }
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue