23 lines
554 B
C#
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);
|
|
}
|
|
|
|
}
|
|
}
|