changeset 4747:5284a3b3217a

Added empty text input functions for win32.
author dewyatt
date Tue, 06 Jul 2010 02:34:49 -0400
parents 0c39b36dd104
children d1ce08e2697f
files src/video/win32/SDL_win32keyboard.c src/video/win32/SDL_win32keyboard.h src/video/win32/SDL_win32video.c
diffstat 3 files changed, 26 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/win32/SDL_win32keyboard.c	Tue Jul 06 02:07:42 2010 -0400
+++ b/src/video/win32/SDL_win32keyboard.c	Tue Jul 06 02:34:49 2010 -0400
@@ -122,4 +122,23 @@
 {
 }
 
+void
+WIN_StartTextInput(_THIS)
+{
+    HWND hwnd = ((SDL_WindowData *) window->driverdata)->hwnd;
+
+}
+
+void
+WIN_StopTextInput(_THIS)
+{
+
+}
+
+void
+WIN_SetTextInputRect(_THIS, SDL_Rect *rect)
+{
+
+}
+
 /* vi: set ts=4 sw=4 expandtab: */
--- a/src/video/win32/SDL_win32keyboard.h	Tue Jul 06 02:07:42 2010 -0400
+++ b/src/video/win32/SDL_win32keyboard.h	Tue Jul 06 02:34:49 2010 -0400
@@ -31,6 +31,10 @@
 extern void WIN_UpdateKeymap(void);
 extern void WIN_QuitKeyboard(_THIS);
 
+extern void WIN_StartTextInput(_THIS);
+extern void WIN_StopTextInput(_THIS);
+extern void WIN_SetTextInputRect(_THIS, SDL_Rect *rect);
+
 #endif /* _SDL_win32keyboard_h */
 
 /* vi: set ts=4 sw=4 expandtab: */
--- a/src/video/win32/SDL_win32video.c	Tue Jul 06 02:07:42 2010 -0400
+++ b/src/video/win32/SDL_win32video.c	Tue Jul 06 02:34:49 2010 -0400
@@ -162,6 +162,9 @@
     device->GL_SwapWindow = WIN_GL_SwapWindow;
     device->GL_DeleteContext = WIN_GL_DeleteContext;
 #endif
+    device->StartTextInput = WIN_StartTextInput;
+    device->StopTextInput = WIN_StartTextInput;
+    device->SetTextInputRect = WIN_SetTextInputRect;
 
     device->free = WIN_DeleteDevice;