Files
stgsharp/源代码/StgSharp/Control/Get.cs
T

23 lines
554 B
C#

using StgSharp.Controlling;
using StgSharp.Graphics;
using StgSharp.Logic;
using StgSharp.Math;
namespace StgSharp
{
public static unsafe partial class Operation
{
/// <summary>
/// Get the status of a certain key on the keyboard.
/// </summary>
/// <param name="form"></param>
/// <param name="key"></param>
/// <returns></returns>
public static KeyStatus GetKeyStatus(Form form, Key key)
{
return InternalIO.glfwGetKey(form.windowID, (int)key);
}
}
}