Ignore:
Timestamp:
Oct 9, 2001, 7:18:05 AM (24 years ago)
Author:
phaller
Message:

enabled low-level keyboard hook

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/winmouse.cpp

    r6846 r6972  
    1 /* $Id: winmouse.cpp,v 1.17 2001-09-27 10:02:38 phaller Exp $ */
     1/* $Id: winmouse.cpp,v 1.18 2001-10-09 05:18:05 phaller Exp $ */
    22/*
    33 * Mouse handler for DINPUT
     
    248248               DWORD, dwExtraInfo)
    249249{
    250   dprintf(("not implemented"));
     250  INPUT i;
     251 
     252  // format input packet
     253  i.type           = INPUT_MOUSE;
     254  i.mi.dx          = dx;
     255  i.mi.dy          = dy;
     256  i.mi.mouseData   = cButtons; // PH: is this really correct?
     257  i.mi.dwFlags     = dwFlags;
     258  i.mi.dwExtraInfo = dwExtraInfo;
     259 
     260  // forward to more modern API
     261  SendInput(1, &i, sizeof(i) );
    251262}
    252263
     
    356367       
    357368        if (fUnicode)
    358           SendMessageW(hwnd, msg.message, msg.wParam, msg.lParam);
     369          PostMessageW(hwnd, msg.message, msg.wParam, msg.lParam);
    359370        else
    360           SendMessageA(hwnd, msg.message, msg.wParam, msg.lParam);
     371          PostMessageA(hwnd, msg.message, msg.wParam, msg.lParam);
    361372       
    362373        SetMessageExtraInfo( (LPARAM)p->dwExtraInfo );
Note: See TracChangeset for help on using the changeset viewer.