src/video/wincommon/SDL_sysevents.c
changeset 13 e30a8ce27c22
parent 1 cf2af46e9e2a
child 36 13ee9f4834ea
equal deleted inserted replaced
12:34d956b20f75 13:e30a8ce27c22
   198 		break;
   198 		break;
   199 
   199 
   200 		case WM_MOUSEMOVE: {
   200 		case WM_MOUSEMOVE: {
   201 			
   201 			
   202 			/* Mouse is handled by DirectInput when fullscreen */
   202 			/* Mouse is handled by DirectInput when fullscreen */
   203 			if ( SDL_VideoSurface && ! DIRECTX_FULLSCREEN() ) {
   203 			if ( SDL_VideoSurface && ! DINPUT_FULLSCREEN() ) {
   204 				Sint16 x, y;
   204 				Sint16 x, y;
   205 
   205 
   206 				/* mouse has entered the window */
   206 				/* mouse has entered the window */
   207 				if ( ! in_window ) {
   207 				if ( ! in_window ) {
   208 #ifdef WM_MOUSELEAVE
   208 #ifdef WM_MOUSELEAVE
   241 
   241 
   242 #ifdef WM_MOUSELEAVE
   242 #ifdef WM_MOUSELEAVE
   243 		case WM_MOUSELEAVE: {
   243 		case WM_MOUSELEAVE: {
   244 
   244 
   245 			/* Mouse is handled by DirectInput when fullscreen */
   245 			/* Mouse is handled by DirectInput when fullscreen */
   246 			if ( SDL_VideoSurface && ! DIRECTX_FULLSCREEN() ) {
   246 			if ( SDL_VideoSurface && ! DINPUT_FULLSCREEN() ) {
   247 				/* mouse has left the window */
   247 				/* mouse has left the window */
   248 				/* or */
   248 				/* or */
   249 				/* Elvis has left the building! */
   249 				/* Elvis has left the building! */
   250 				in_window = FALSE;
   250 				in_window = FALSE;
   251 				posted = SDL_PrivateAppActive(0, SDL_APPMOUSEFOCUS);
   251 				posted = SDL_PrivateAppActive(0, SDL_APPMOUSEFOCUS);
   259 		case WM_MBUTTONDOWN:
   259 		case WM_MBUTTONDOWN:
   260 		case WM_MBUTTONUP:
   260 		case WM_MBUTTONUP:
   261 		case WM_RBUTTONDOWN:
   261 		case WM_RBUTTONDOWN:
   262 		case WM_RBUTTONUP: {
   262 		case WM_RBUTTONUP: {
   263 			/* Mouse is handled by DirectInput when fullscreen */
   263 			/* Mouse is handled by DirectInput when fullscreen */
   264 			if ( SDL_VideoSurface && ! DIRECTX_FULLSCREEN() ) {
   264 			if ( SDL_VideoSurface && ! DINPUT_FULLSCREEN() ) {
   265 				Sint16 x, y;
   265 				Sint16 x, y;
   266 				Uint8 button, state;
   266 				Uint8 button, state;
   267 
   267 
   268 				/* Figure out which button to use */
   268 				/* Figure out which button to use */
   269 				switch (msg) {
   269 				switch (msg) {