Changeset 3007
- Timestamp:
- Mar 4, 2000, 8:54:03 PM (25 years ago)
- 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.2 0 2000-03-03 21:19:13 hughExp $ */1 /* $Id: oslibmsgtranslate.cpp,v 1.21 2000-03-04 19:54:03 sandervl Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 46 46 0x09, // VK_TAB VK_TAB 47 47 0x00, // VK_BACKTAB No equivalent! 48 0x0 D, // VK_NEWLINE VK_RETURN48 0x0A, // VK_NEWLINE 0x0A (no VK_* def) 49 49 0x10, // VK_SHIFT VK_SHIFT 50 50 0x11, // VK_CTRL VK_CONTROL … … 193 193 winMsg->lParam = MAKELONG(ClientPoint.x, ClientPoint.y); //client coordinates 194 194 } 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 } 195 200 196 201 return TRUE; … … 223 228 winMsg->wParam = GetMouseKeyState(); 224 229 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 225 235 } 226 236 //OS/2 Window coordinates -> Win32 Window coordinates … … 440 450 { 441 451 if(DInputMouseHandler(win32wnd->getWindowHandle(), MOUSEMSG_BUTTON, winMsg->pt.x, winMsg->pt.y)) 442 goto dummymessage; 452 goto dummymessage; //dinput swallowed message 443 453 } 444 454 … … 476 486 { 477 487 if(DInputMouseHandler(win32wnd->getWindowHandle(), MOUSEMSG_MOVE, winMsg->pt.x, winMsg->pt.y)) 478 goto dummymessage; 488 goto dummymessage; //dinput swallowed message 479 489 } 480 490 //OS/2 Window coordinates -> Win32 Window coordinates … … 635 645 if(ISKDB_CAPTURED()) 636 646 { 637 DInputKeyBoardHandler(winMsg); 647 if(DInputKeyBoardHandler(winMsg)) 648 goto dummymessage; //dinput swallowed message 638 649 } 639 650 break; -
TabularUnified trunk/src/user32/winmouse.cpp ¶
r2956 r3007 1 /* $Id: winmouse.cpp,v 1. 6 2000-03-01 13:30:07sandervl Exp $ */1 /* $Id: winmouse.cpp,v 1.7 2000-03-04 19:54:03 sandervl Exp $ */ 2 2 /* 3 3 * Mouse handler for DINPUT … … 41 41 //****************************************************************************** 42 42 //****************************************************************************** 43 voidDInputKeyBoardHandler(MSG *msg)43 BOOL DInputKeyBoardHandler(MSG *msg) 44 44 { 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); 47 49 } 48 50 //****************************************************************************** -
TabularUnified trunk/src/user32/winmouse.h ¶
r2956 r3007 1 /* $Id: winmouse.h,v 1. 5 2000-03-01 13:30:07sandervl Exp $ */1 /* $Id: winmouse.h,v 1.6 2000-03-04 19:54:03 sandervl Exp $ */ 2 2 /* 3 3 * Mouse handler for DINPUT … … 22 22 23 23 BOOL DInputMouseHandler(HWND hwnd, ULONG msg, ULONG x, ULONG y); 24 voidDInputKeyBoardHandler(MSG *msg);24 BOOL DInputKeyBoardHandler(MSG *msg); 25 25 26 26 #endif //__WINMOUSE_H__
Note:
See TracChangeset
for help on using the changeset viewer.