void SelectCursor() { if (mouse.IsMiddleClick() || mouse.IsBWDClick() || Input.GetKey(Key.C).Held) { if (mouse.Y < Parent.Screen.Height && mouse.Y >= 0 && mouse.X < Parent.Screen.Width && mouse.X >= 0) { var data = ConsoleRendererExtensions.getCharAt((ConsoleRenderer)Parent.Screen, mouse.X, mouse.Y); if (data.Item1 == '█') { colorValue.Value = data.Item2 & 0x0F; } else { colorValue.Value = data.Item2; } } } if (mouse.IsFWDClick() || Input.GetKey(Key.X).Held) { if (mouse.Y < Parent.Screen.Height && mouse.Y >= 0 && mouse.X < Parent.Screen.Width && mouse.X >= 0) { var data = ConsoleRendererExtensions.getCharAt((ConsoleRenderer)Parent.Screen, mouse.X, mouse.Y); characterValue = data.Item1; } } }