daily update on 20230911 by nitload youmu, uncertain bug of gl api loading
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
using StgSharp.Control;
|
||||
using StgSharp.Controlling;
|
||||
using StgSharp.Graphics;
|
||||
using StgSharp.Logic;
|
||||
using StgSharp.Math;
|
||||
|
||||
namespace StgSharp
|
||||
{
|
||||
public static unsafe partial class Instruction
|
||||
public static unsafe partial class Control
|
||||
{
|
||||
public static LinkedList<T> GetAllActivatedPool<T>() where T:Pool
|
||||
public static LinkedList<T> GetAllActivatedPool<T>() where T : Pool
|
||||
{
|
||||
/**/
|
||||
LinkedList<T> pool = new LinkedList<T>();
|
||||
@@ -47,5 +48,16 @@ namespace StgSharp
|
||||
return ptr;
|
||||
}
|
||||
|
||||
/// <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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user