mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-25 21:41:12 +00:00
parent
a6f610dd0c
commit
f545bd512b
|
@ -33,6 +33,8 @@ using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace OpenTK.Platform.SDL2
|
namespace OpenTK.Platform.SDL2
|
||||||
{
|
{
|
||||||
|
using Surface = IntPtr;
|
||||||
|
using Cursor = IntPtr;
|
||||||
|
|
||||||
partial class SDL
|
partial class SDL
|
||||||
{
|
{
|
||||||
|
@ -77,6 +79,26 @@ namespace OpenTK.Platform.SDL2
|
||||||
// strlen++;
|
// strlen++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#region Cursor
|
||||||
|
|
||||||
|
[SuppressUnmanagedCodeSecurity]
|
||||||
|
[DllImport(lib, CallingConvention = CallingConvention.Cdecl, EntryPoint = "SDL_CreateColorCursor", ExactSpelling = true)]
|
||||||
|
public static extern Cursor CreateColorCursor(Surface surface, int w, int h, int hot_x, int hot_y);
|
||||||
|
|
||||||
|
[SuppressUnmanagedCodeSecurity]
|
||||||
|
[DllImport(lib, CallingConvention = CallingConvention.Cdecl, EntryPoint = "SDL_FreeCursor", ExactSpelling = true)]
|
||||||
|
public static extern void FreeCursor(Cursor cursor);
|
||||||
|
|
||||||
|
[SuppressUnmanagedCodeSecurity]
|
||||||
|
[DllImport(lib, CallingConvention = CallingConvention.Cdecl, EntryPoint = "SDL_GetDefaultCursor", ExactSpelling = true)]
|
||||||
|
public static extern IntPtr GetDefaultCursor();
|
||||||
|
|
||||||
|
[SuppressUnmanagedCodeSecurity]
|
||||||
|
[DllImport(lib, CallingConvention = CallingConvention.Cdecl, EntryPoint = "SDL_SetCursor", ExactSpelling = true)]
|
||||||
|
public static extern void SetCursor(Cursor cursor);
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
[SuppressUnmanagedCodeSecurity]
|
[SuppressUnmanagedCodeSecurity]
|
||||||
[DllImport(lib, CallingConvention = CallingConvention.Cdecl, EntryPoint = "SDL_AddEventWatch", ExactSpelling = true)]
|
[DllImport(lib, CallingConvention = CallingConvention.Cdecl, EntryPoint = "SDL_AddEventWatch", ExactSpelling = true)]
|
||||||
public static extern void AddEventWatch(EventFilter filter, IntPtr userdata);
|
public static extern void AddEventWatch(EventFilter filter, IntPtr userdata);
|
||||||
|
|
Loading…
Reference in a new issue