mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-24 01:35:32 +00:00
Added LoadCursor method.
Added CursorName enum (only default arrow cursor is defined for now).
This commit is contained in:
parent
8fbea23db2
commit
7b8ba2eacb
|
@ -828,6 +828,21 @@ namespace OpenTK.Platform.Windows
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region LoadCursor
|
||||||
|
|
||||||
|
[DllImport("user32.dll")]
|
||||||
|
public static extern HCURSOR LoadCursor(HINSTANCE hInstance, LPCTSTR lpCursorName);
|
||||||
|
|
||||||
|
[DllImport("user32.dll")]
|
||||||
|
public static extern HCURSOR LoadCursor(HINSTANCE hInstance, IntPtr lpCursorName);
|
||||||
|
|
||||||
|
public static HCURSOR LoadCursor(CursorName lpCursorName)
|
||||||
|
{
|
||||||
|
return LoadCursor(IntPtr.Zero, new IntPtr((int)lpCursorName));
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Display settings
|
#region Display settings
|
||||||
|
@ -4039,6 +4054,15 @@ namespace OpenTK.Platform.Windows
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region CursorName
|
||||||
|
|
||||||
|
enum CursorName : int
|
||||||
|
{
|
||||||
|
Arrow = 32512
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region --- Callbacks ---
|
#region --- Callbacks ---
|
||||||
|
|
Loading…
Reference in a new issue