Added SDL_SetWindowsMessageHook() to facilitate full IME support on Windows

This commit is contained in:
Sam Lantinga committed 2015-05-13 22:39:20 -07:00
1 parent 094c4a160f
commit 7de242e72c
5 files changed
+21

No files matched your search

+6
View File
@@ -42,6 +42,12 @@ extern "C" {
/* Platform specific functions for Windows */
#ifdef __WIN32__
/**
\brief Set a function that is called for every windows message, before TranslateMessage()
*/
typedef void (*SDL_WindowsMessageHook)(void *hWnd, unsigned int message, Uint64 wParam, Sint64 lParam);
extern DECLSPEC void SDLCALL SDL_SetWindowsMessageHook(SDL_WindowsMessageHook callback);
/**
\brief Returns the D3D9 adapter index that matches the specified display index.