From 4ec65bc5a00049f7211b506ed85033f1c72c60af Mon Sep 17 00:00:00 2001 From: Ethan Lee Date: Fri, 11 Nov 2016 13:40:34 -0500 Subject: [PATCH] SDL_SetWindowInputFocus --- src/SDL2.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/SDL2.cs b/src/SDL2.cs index e3a6504..f3b047e 100644 --- a/src/SDL2.cs +++ b/src/SDL2.cs @@ -1387,6 +1387,11 @@ namespace SDL2 IntPtr parent_window ); + /* window refers to an SDL_Window* */ + /* Available in 2.0.5 or higher */ + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] + public static extern int SDL_SetWindowInputFocus(IntPtr window); + /// /// Use this function to retrieve the data pointer associated with a window. ///