Я пытаюсь использовать класс клавиатуры.
Вот мой код
Код: Выделить всё
using System;
using System.Windows; // shows this is unnecessary
namespace HelloWorld
{
public class Map
{
public string[][] layer { get; set; }
public int[][] collision { get; set; }
}
class Program
{
static void Main(string[] args)
{
while (true)
{
Console.WriteLine(System.Windows.Input.Keyboard.IsKeyDown(ConsoleKey.Spacebar));
}
}
}
}
Что мне делать?
Я пытался добавить с помощью Windows.Input< /code> но он просто показывает предупреждение IDE0005.
Я хочу использовать Keyboard.IsKeyDown для своей игры, но да
Подробнее здесь: https://stackoverflow.com/questions/787 ... sent-exist
Мобильная версия