I got problem this is my code for moving my Cursor and i need help to make it moving automatic/alone , i mean e.g. when i press LeftArrow it should go left until i press e.g. RightArrow to change the navigation.
switch (Console.ReadKey(true).Key)
{
case ConsoleKey.UpArrow:
{
if (y > 0)
{
y--; // y = y - 1
}
break;
}
case ConsoleKey.DownArrow:
{
if (y < höhe - 1)
{
y++; // y = y + 1
}
break;
}
case ConsoleKey.LeftArrow:
{
if (x > 0)
{
x--; // x = x - 1
}
break;
}
case ConsoleKey.RightArrow:
{
if (x < breite - 1)
{
x++; // x = x + 1
}
break;
}