Changeset 3007


Ignore:
Timestamp:
Mar 4, 2000, 8:54:03 PM (25 years ago)
Author:
sandervl
Message:

dinput changes

Location:
trunk/src/user32
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/user32/oslibmsgtranslate.cpp

    r2990 r3007  
    1 /* $Id: oslibmsgtranslate.cpp,v 1.20 2000-03-03 21:19:13 hugh Exp $ */
     1/* $Id: oslibmsgtranslate.cpp,v 1.21 2000-03-04 19:54:03 sandervl Exp $ */
    22/*
    33 * Window message translation functions for OS/2
     
    4646               0x09,    // VK_TAB           VK_TAB
    4747               0x00,    // VK_BACKTAB       No equivalent!
    48                0x0D,    // VK_NEWLINE       VK_RETURN
     48               0x0A,    // VK_NEWLINE       0x0A (no VK_* def)
    4949               0x10,    // VK_SHIFT         VK_SHIFT
    5050               0x11,    // VK_CTRL          VK_CONTROL
     
    193193            winMsg->lParam  = MAKELONG(ClientPoint.x, ClientPoint.y); //client coordinates
    194194        }
     195        if(ISMOUSE_CAPTURED())
     196        {
     197            if(DInputMouseHandler(win32wnd->getWindowHandle(), MOUSEMSG_BUTTON, winMsg->pt.x, winMsg->pt.y))
     198                goto dummymessage; //dinput swallowed message
     199        }
    195200
    196201        return TRUE;
     
    223228          winMsg->wParam  = GetMouseKeyState();
    224229          winMsg->lParam  = MAKELONG(SHORT1FROMMP(os2Msg->mp1),mapOS2ToWin32Y(win32wnd->getOS2FrameWindowHandle(),win32wnd->getOS2WindowHandle(),SHORT2FROMMP(os2Msg->mp1)));
     230        }
     231        if(ISMOUSE_CAPTURED())
     232        {
     233            if(DInputMouseHandler(win32wnd->getWindowHandle(), MOUSEMSG_MOVE, winMsg->pt.x, winMsg->pt.y))
     234                goto dummymessage; //dinput swallowed message
    225235        }
    226236        //OS/2 Window coordinates -> Win32 Window coordinates
     
    440450        {
    441451            if(DInputMouseHandler(win32wnd->getWindowHandle(), MOUSEMSG_BUTTON, winMsg->pt.x, winMsg->pt.y))
    442                 goto dummymessage;
     452                goto dummymessage; //dinput swallowed message
    443453        }
    444454
     
    476486        {
    477487            if(DInputMouseHandler(win32wnd->getWindowHandle(), MOUSEMSG_MOVE, winMsg->pt.x, winMsg->pt.y))
    478                 goto dummymessage;
     488                goto dummymessage; //dinput swallowed message
    479489        }
    480490        //OS/2 Window coordinates -> Win32 Window coordinates
     
    635645        if(ISKDB_CAPTURED())
    636646        {
    637             DInputKeyBoardHandler(winMsg);
     647            if(DInputKeyBoardHandler(winMsg))
     648                goto dummymessage; //dinput swallowed message
    638649        }
    639650        break;
  • TabularUnified trunk/src/user32/winmouse.cpp

    r2956 r3007  
    1 /* $Id: winmouse.cpp,v 1.6 2000-03-01 13:30:07 sandervl Exp $ */
     1/* $Id: winmouse.cpp,v 1.7 2000-03-04 19:54:03 sandervl Exp $ */
    22/*
    33 * Mouse handler for DINPUT
     
    4141//******************************************************************************
    4242//******************************************************************************
    43 void DInputKeyBoardHandler(MSG *msg)
     43BOOL DInputKeyBoardHandler(MSG *msg)
    4444{
    45   if(keyboardHandler)
    46         keyboardHandler(msg->hwnd, msg->message, msg->wParam, msg->lParam);
     45  if(!ISKDB_CAPTURED())
     46        return FALSE;
     47
     48  return keyboardHandler(msg->hwnd, msg->message, msg->wParam, msg->lParam);
    4749}
    4850//******************************************************************************
  • TabularUnified trunk/src/user32/winmouse.h

    r2956 r3007  
    1 /* $Id: winmouse.h,v 1.5 2000-03-01 13:30:07 sandervl Exp $ */
     1/* $Id: winmouse.h,v 1.6 2000-03-04 19:54:03 sandervl Exp $ */
    22/*
    33 * Mouse handler for DINPUT
     
    2222
    2323BOOL DInputMouseHandler(HWND hwnd, ULONG msg, ULONG x, ULONG y);
    24 void DInputKeyBoardHandler(MSG *msg);
     24BOOL DInputKeyBoardHandler(MSG *msg);
    2525
    2626#endif //__WINMOUSE_H__
Note: See TracChangeset for help on using the changeset viewer.