Added a userdata parameter to SDL_SetWindowsMessageHook()

This commit is contained in:
Sam Lantinga committed 2015-05-13 22:39:32 -07:00
1 parent b2be9253e3
commit 1c6ea0f226
3 files changed
+7 -5

No files matched your search

+2 -2
View File
@@ -46,8 +46,8 @@ extern "C" {
/**
\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);
typedef void (SDLCALL * SDL_WindowsMessageHook)(void *userdata, void *hWnd, unsigned int message, Uint64 wParam, Sint64 lParam);
extern DECLSPEC void SDLCALL SDL_SetWindowsMessageHook(SDL_WindowsMessageHook callback, void *userdata);
/**
\brief Returns the D3D9 adapter index that matches the specified display index.