From 4291dc030027820f7945e7894bf93bb36e34cae1 Mon Sep 17 00:00:00 2001 From: Magnus von Wachenfeldt Date: Tue, 16 Feb 2016 19:48:09 +0100 Subject: [PATCH] deprecated crap --- Neoforce/Console.cs | 3 --- Neoforce/InputSystem.cs | 3 --- Neoforce/TextBox.cs | 19 ------------------- 3 files changed, 25 deletions(-) diff --git a/Neoforce/Console.cs b/Neoforce/Console.cs index 3c4dd41..6328519 100644 --- a/Neoforce/Console.cs +++ b/Neoforce/Console.cs @@ -26,7 +26,6 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System.Collections; using System.Collections.Generic; -using Microsoft.Xna.Framework.GamerServices; //////////////////////////////////////////////////////////////////////////// @@ -469,8 +468,6 @@ namespace TomShane.Neoforce.Controls //////////////////////////////////////////////////////////////////////////// private void SendMessage(EventArgs x) { - if (Manager.UseGuide && Guide.IsVisible) return; - KeyEventArgs k = new KeyEventArgs(); GamePadEventArgs g = new GamePadEventArgs(PlayerIndex.One); diff --git a/Neoforce/InputSystem.cs b/Neoforce/InputSystem.cs index 28f6c31..0e6889f 100644 --- a/Neoforce/InputSystem.cs +++ b/Neoforce/InputSystem.cs @@ -24,7 +24,6 @@ using System; using System.Collections.Generic; using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.GamerServices; using Microsoft.Xna.Framework.Input; //////////////////////////////////////////////////////////////////////////// @@ -393,8 +392,6 @@ namespace TomShane.Neoforce.Controls //////////////////////////////////////////////////////////////////////////// public virtual void Update(GameTime gameTime) { - if (manager.UseGuide && Guide.IsVisible) return; - #if (!XBOX && !XBOX_FAKE) MouseState ms = Mouse.GetState(); KeyboardState ks = Keyboard.GetState(); diff --git a/Neoforce/TextBox.cs b/Neoforce/TextBox.cs index f24141b..e668256 100644 --- a/Neoforce/TextBox.cs +++ b/Neoforce/TextBox.cs @@ -29,7 +29,6 @@ using System.Text; using System.Collections; using System.Collections.Generic; using System.Diagnostics; -using Microsoft.Xna.Framework.GamerServices; //////////////////////////////////////////////////////////////////////////// @@ -997,8 +996,6 @@ namespace TomShane.Neoforce.Controls { flashTime = 0; - if (Manager.UseGuide && Guide.IsVisible) return; - if (!e.Handled) { if (e.Key == Keys.A && e.Control && mode != TextBoxMode.Password) @@ -1237,8 +1234,6 @@ namespace TomShane.Neoforce.Controls //////////////////////////////////////////////////////////////////////////// protected override void OnGamePadDown(GamePadEventArgs e) { - if (Manager.UseGuide && Guide.IsVisible) return; - if (!e.Handled) { if (e.Button == GamePadActions.Click) @@ -1254,22 +1249,8 @@ namespace TomShane.Neoforce.Controls //////////////////////////////////////////////////////////////////////////// private void HandleGuide(PlayerIndex pi) { - if (Manager.UseGuide && !Guide.IsVisible) - { - Guide.BeginShowKeyboardInput(pi, "Enter Text", "", Text, GetText, pi.ToString()); - } } - //////////////////////////////////////////////////////////////////////////// - //////////////////////////////////////////////////////////////////////////// - private void GetText(IAsyncResult result) - { - string res = Guide.EndShowKeyboardInput(result); - Text = res != null ? res : ""; - Pos = text.Length; - } - //////////////////////////////////////////////////////////////////////////// - //////////////////////////////////////////////////////////////////////////// private void SetupBars() {