Added SDL_SetWindowsMessageHook() to facilitate full IME support on Windows

This commit is contained in:
Sam Lantinga 2015-05-13 22:39:20 -07:00
parent 094c4a160f
commit 7de242e72c
5 changed files with 21 additions and 0 deletions

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.