static public void Update(List <Actions.ActionKey> keys) { switch (currentControls) { case ControlSetup.Standard: foreach (var key in keys) { StandardControls(key); } break; case ControlSetup.LootPickUp: if (keys.Count > 0) { LootPickUpControls(keys.Last()); } break; default: break; } if (keys.Count == 0) { if (typeof(BaseCharacter) == PlayerController.selectedSprite.GetType()) { (PlayerController.selectedSprite as BaseCharacter).animationIndex = (int)BaseCharacter.CharacterAnimations.Idle; } } if (keys[keys.Count - 1].actionIndentifierString.Equals(Game1.openMenuString) && !KeyboardMouseUtility.AnyButtonsPressed() && !BattleGUI.bIsRunning) { GameProcessor.bInGameMenu = true; GameMenuHandler.Start(); KeyboardMouseUtility.bPressed = true; GameProcessor.EnableMenuStage(); } if (keys[keys.Count - 1].actionIndentifierString.Equals(Game1.SettingsMenu) && !KeyboardMouseUtility.AnyButtonsPressed() && !BattleGUI.bIsRunning) { SettingsMenu.Start(); } PlayerController.selectedSprite.rotationIndex = ri; if (GameProcessor.bCameraOnController) { // GameProcessor.sceneCamera = ((new Vector2(-(PlayerController.selectedSprite.position.X + 32 - 1366 / GameProcessor.zoom / 2), -(PlayerController.selectedSprite.position.Y + 32 - 768 / GameProcessor.zoom / 2)))); } /* * var region = GameProcessor.loadedMap.mapRegions.Find(r => r.Contains(PlayerController.selectedSprite)); * if (region != null) * { * var zone = region.regionZones.Find(z => z.Contains(PlayerController.selectedSprite)); * if (zone != null) * { * zoneInfoForm.Start(zone, region); * } * } */ }