src/video/windows/SDL_windowsevents.c
changeset 7276 37814e7eeff3
parent 7275 0a6b3b998814
child 7295 737cc5bad795
equal deleted inserted replaced
7275:0a6b3b998814 7276:37814e7eeff3
    31 #include "../../events/scancodes_windows.h"
    31 #include "../../events/scancodes_windows.h"
    32 
    32 
    33 /* Dropfile support */
    33 /* Dropfile support */
    34 #include <shellapi.h>
    34 #include <shellapi.h>
    35 
    35 
       
    36 /* For GET_X_LPARAM, GET_Y_LPARAM. */
       
    37 #include <windowsx.h>
    36 
    38 
    37 /*#define WMMSG_DEBUG*/
    39 /*#define WMMSG_DEBUG*/
    38 #ifdef WMMSG_DEBUG
    40 #ifdef WMMSG_DEBUG
    39 #include <stdio.h>
    41 #include <stdio.h>
    40 #include "wmmsg.h"
    42 #include "wmmsg.h"
   379         returnCode = 0;
   381         returnCode = 0;
   380         break;
   382         break;
   381 
   383 
   382     case WM_MOUSEMOVE:
   384     case WM_MOUSEMOVE:
   383         if( !SDL_GetMouse()->relative_mode )
   385         if( !SDL_GetMouse()->relative_mode )
   384             SDL_SendMouseMotion(data->window, 0, 0, LOWORD(lParam), HIWORD(lParam));
   386             SDL_SendMouseMotion(data->window, 0, 0, GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam));
   385         /* don't break here, fall through to check the wParam like the button presses */
   387         /* don't break here, fall through to check the wParam like the button presses */
   386     case WM_LBUTTONUP:
   388     case WM_LBUTTONUP:
   387     case WM_RBUTTONUP:
   389     case WM_RBUTTONUP:
   388     case WM_MBUTTONUP:
   390     case WM_MBUTTONUP:
   389     case WM_XBUTTONUP:
   391     case WM_XBUTTONUP: