mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 19:15:36 +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
|
||||
|
||||
#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
|
||||
|
||||
#region Display settings
|
||||
|
@ -4039,6 +4054,15 @@ namespace OpenTK.Platform.Windows
|
|||
|
||||
#endregion
|
||||
|
||||
#region CursorName
|
||||
|
||||
enum CursorName : int
|
||||
{
|
||||
Arrow = 32512
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
#region --- Callbacks ---
|
||||
|
|
Loading…
Reference in a new issue