mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-08 06:40:42 +00:00
Added SetTimer, KillTimer and TimerProc bindings.
This commit is contained in:
parent
d7cc044144
commit
8b33230160
|
@ -61,6 +61,10 @@ namespace OpenTK.Platform.Windows
|
||||||
|
|
||||||
using HRESULT = System.IntPtr;
|
using HRESULT = System.IntPtr;
|
||||||
|
|
||||||
|
using UINT_PTR = System.UIntPtr;
|
||||||
|
|
||||||
|
using TIMERPROC = Functions.TimerProc;
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1385,6 +1389,19 @@ namespace OpenTK.Platform.Windows
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region Timer Functions
|
||||||
|
|
||||||
|
[DllImport("user32.dll", SetLastError=true)]
|
||||||
|
public static extern UINT_PTR SetTimer(HWND hWnd, UINT_PTR nIDEvent, UINT uElapse, TIMERPROC lpTimerFunc);
|
||||||
|
|
||||||
|
[DllImport("user32.dll", SetLastError=true)]
|
||||||
|
public static extern BOOL KillTimer(HWND hWnd, UINT_PTR uIDEvent);
|
||||||
|
|
||||||
|
[UnmanagedFunctionPointer(CallingConvention.Winapi)]
|
||||||
|
public delegate void TimerProc(HWND hwnd, WindowMessage uMsg, UINT_PTR idEvent, DWORD dwTime);
|
||||||
|
|
||||||
|
#endregion
|
||||||
}
|
}
|
||||||
|
|
||||||
#region --- Constants ---
|
#region --- Constants ---
|
||||||
|
|
Loading…
Reference in a new issue