This commit is contained in:
hellka7
2025-05-17 19:41:52 -07:00
parent b4cd4c783b
commit 7146e62d3d
2 changed files with 8 additions and 6 deletions
+3 -3
View File
@@ -18,14 +18,14 @@ namespace LunaLightXMG
public bool KeyAttack { get; private set; }
public bool KeyWallClimb { get; private set; }
public void Update(KeyboardState keyboardState)
public void Update()
{
if (HasControl)
{
if (Controller)
{
// If using controller, switch to keyboard by pressing any key
if (keyboardState.GetPressedKeys().Length > 0)
if (Keyboard.GetState().GetPressedKeys().Length > 0)
{
// TODO: Insert logic to create the objMouseJoyStick instance
Controller = false;
@@ -72,7 +72,7 @@ namespace LunaLightXMG
}
// Keyboard input
//KeyboardState keyboardState = Keyboard.GetState();
KeyboardState keyboardState = Keyboard.GetState();
KeyLeft = keyboardState.IsKeyDown(Keys.A) ? 1 : 0;
KeyRight = keyboardState.IsKeyDown(Keys.D) ? 1 : 0;