From ed6b95e994d10023d3d6a230667f019373fe50b5 Mon Sep 17 00:00:00 2001 From: "John F. Fay" Date: Thu, 28 Apr 2005 14:42:26 +0000 Subject: [PATCH] Adding Window Exit event handling to the Windows code; also adding a note that eventually it would be good to handle the Window Entry event git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@587 7f0cb862-5218-0410-a997-914c9d46530a --- src/freeglut_main.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/freeglut_main.c b/src/freeglut_main.c index 6d03a01..36faaf9 100644 --- a/src/freeglut_main.c +++ b/src/freeglut_main.c @@ -1265,6 +1265,16 @@ LRESULT CALLBACK fgWindowProc( HWND hWnd, UINT uMsg, WPARAM wParam, */ return 0; + /* XXX For a future patch: we need a mouse entry event. Unfortunately Windows + * XXX doesn't give us one, so we will probably need a "MouseInWindow" flag in + * XXX the SFG_Window structure. Set it to true to begin with and then have the + * XXX WM_MOUSELEAVE code set it to false. Then when we get a WM_MOUSEMOVE event, + * XXX if the flag is false we invoke the Entry callback and set the flag to true. + */ + case 0x02a2: /* This is the message we get when the mouse is leaving the window */ + INVOKE_WCB( *window, Entry, ( GLUT_LEFT ) ); + break ; + case WM_MOUSEMOVE: { #if TARGET_HOST_WINCE -- 1.7.10.4