mirror of
https://github.com/TheRavenwoodArts/LunaLightXMG.git
synced 2026-07-31 00:05:02 -07:00
Testing
This commit is contained in:
+3
-3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user