Ignore:
Timestamp:
May 9, 2000, 8:58:40 PM (25 years ago)
Author:
sandervl
Message:

cooperative keyboard capture fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/dinput/dinput.cpp

    r3163 r3502  
    1 /* $Id: dinput.cpp,v 1.5 2000-03-19 09:16:58 mike Exp $ */
     1/* $Id: dinput.cpp,v 1.6 2000-05-09 18:58:40 sandervl Exp $ */
    22/*              DirectInput
    33 *
     
    995995
    996996/* Our private mouse event handler */
    997 static void WINAPI dinput_mouse_event( DWORD dwFlags, DWORD dx, DWORD dy,
    998                                       DWORD cButtons, DWORD dwExtraInfo )
     997static BOOL WINAPI dinput_mouse_event( DWORD dwFlags, DWORD dx, DWORD dy,
     998                                       DWORD cButtons, DWORD dwExtraInfo )
    999999{
    10001000  DWORD posX, posY, keyState, xtime, extra;
     
    10131013    extra = (DWORD)wme->hWnd;
    10141014
     1015    if(This->win && This->win != wme->hWnd) {
     1016        return FALSE;
     1017    }
     1018
    10151019    assert( dwFlags & MOUSEEVENTF_ABSOLUTE );
    10161020    posX = (dx * GetSystemMetrics(SM_CXSCREEN)) >> 16;
     
    10191023    ERR("Mouse event not supported...\n");
    10201024    LeaveCriticalSection(&(This->crit));
    1021     return ;
    1022   }
    1023 
    1024   TRACE("DINPUT-SMAI: event %ld, %ld", posX, posY);
     1025    return FALSE;
     1026  }
     1027
     1028  TRACE("DINPUT-SMAI: event %x %ld, %ld", dwFlags, posX, posY);
    10251029
    10261030  if ( dwFlags & MOUSEEVENTF_MOVE ) {
     
    10941098  This->prevY = posY;
    10951099  LeaveCriticalSection(&(This->crit));
     1100
     1101  return TRUE;
    10961102}
    10971103
     
    11051111  RECT  rect;
    11061112
    1107   TRACE("(this=%p)\n",This);
     1113  TRACE("SysMouseAImpl_Acquire: (this=%p)\n",This);
    11081114
    11091115  if (This->acquired == 0) {
     
    11511157  ICOM_THIS(SysMouseAImpl,iface);
    11521158
    1153   TRACE("(this=%p)\n",This);
     1159  TRACE("SysMouseAImpl_Unacquire: (this=%p)\n",This);
    11541160
    11551161  /* Reinstall previous mouse event handler */
Note: See TracChangeset for help on using the changeset viewer.