using OpenTK.Windowing.GraphicsLibraryFramework; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Voxel { public static class Input { private static Dictionary _keystates = new Dictionary(); public static bool GetKey(Keys key) { return _keystates.TryGetValue(key, out bool pressed) && pressed; } public static void SetKey(Keys key, bool pressed) { _keystates[key] = pressed; } } }