diff include/SDL_video.h @ 3136:962357f325e1 gsoc2009_IME

Further polish API, fix crash in test program.
author Jiang Jiang <gzjjgod@gmail.com>
date Thu, 06 Aug 2009 08:59:53 +0000
parents f4e553ec6a62
children
line wrap: on
line diff
--- a/include/SDL_video.h	Thu Aug 06 08:56:48 2009 +0000
+++ b/include/SDL_video.h	Thu Aug 06 08:59:53 2009 +0000
@@ -1468,14 +1468,14 @@
 extern DECLSPEC void SDLCALL SDL_GL_DeleteContext(SDL_GLContext context);
 
 /**
- * \fn void SDL_StartTextInput(SDL_WindowID windowID)
+ * \fn void SDL_StartTextInput(void)
  *
- * \brief Start accepting Unicode text input events in given window.
+ * \brief Start accepting Unicode text input events.
  *
  * \sa SDL_StopTextInput()
  * \sa SDL_SetTextInputRect()
  */
-extern DECLSPEC void SDLCALL SDL_StartTextInput(SDL_WindowID windowID);
+extern DECLSPEC void SDLCALL SDL_StartTextInput(void);
 
 /**
  * \fn void SDL_StopTextInput(void)
@@ -1495,6 +1495,13 @@
  */
 extern DECLSPEC void SDLCALL SDL_SetTextInputRect(SDL_Rect *rect);
 
+/**
+ * \fn SDL_WindowID SDL_GetFocusWindow(void)
+ *
+ * \brief Get focused window.
+ */
+extern DECLSPEC SDL_WindowID SDLCALL SDL_GetFocusWindow(void);
+
 /* Ends C function definitions when using C++ */
 #ifdef __cplusplus
 /* *INDENT-OFF* */