Changeset 5375
- Timestamp:
- Mar 25, 2001, 10:06:13 PM (25 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
changelog (modified) (3 diffs)
-
src/dinput/dinput.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/changelog
r5374 r5375 1 /* $Id: changelog,v 1.1319 2001-03-25 08:51:22 sandervl Exp $ */ 1 /* $Id: changelog,v 1.1320 2001-03-25 20:06:12 mike Exp $ */ 2 3 2001-03-25: Michal Necasek <michalnec@volny.cz> 4 - DINPUT: o Fixed keyboard handling. Now arrow keys should work right 5 on both numpad and the separate arrow block among other things. 2 6 3 7 2001-03-25: Sander van Leeuwen <sandervl@xs4all.nl> 4 8 - USER32: o If a static window has children, then we can't return HTTRANSPARENT 5 for WM_NCHITTEST. For some reason PM then sends all mouse messages 6 to the parent of the static window; even if they are intended 9 for WM_NCHITTEST. For some reason PM then sends all mouse messages 10 to the parent of the static window; even if they are intended 7 11 for the children of the static window. 8 12 TODO: This could break some win32 apps (parent not receiving mouse … … 38 42 (fixes crash in PowerDVD with release build of kernel32) 39 43 40 2001-03-22: Michal Necasek <michalnec@volny.cz>41 - USER32: o Show the mouse pointer in the exitlist handler of user32.42 44 (should restore the mouse pointer after a game crashes) 43 45 … … 79 81 now work as executed thru pec.exe. 80 82 - Kernel32: o Init VIO Console for Pe2Lx CUI images. 81 82 [DirectDraw]83 Fullscreen=[True|False|0|1]84 85 Don't blame me if your machine goes up in smoke after you've86 turned fullscreen on ;-)87 Note: It seems that fullscreen currently doesn't work right88 with newer SDD releases for 8bpp apps, though 16/24/32bpp89 should be OK (palette setting problems)90 83 91 84 2001-03-15: knut st. osmundsen <knut.stange.osmundsen@mynd.no> -
trunk/src/dinput/dinput.cpp
r3763 r5375 1 /* $Id: dinput.cpp,v 1. 9 2000-06-27 21:32:41mike Exp $ */1 /* $Id: dinput.cpp,v 1.10 2001-03-25 20:06:13 mike Exp $ */ 2 2 /* DirectInput 3 3 * … … 621 621 } 622 622 623 BYTE scan2dinput( BYTEscan) {623 BYTE scan2dinput(WORD scan) { 624 624 BYTE dscan; 625 625 626 626 switch (scan) { 627 case 0x 61:627 case 0x148: 628 628 dscan = DIK_UP; 629 629 break; 630 case 0x 63:630 case 0x14b: 631 631 dscan = DIK_LEFT; 632 632 break; 633 case 0x 64:633 case 0x14d: 634 634 dscan = DIK_RIGHT; 635 635 break; 636 case 0x 66:636 case 0x150: 637 637 dscan = DIK_DOWN; 638 638 break; 639 case 0x 5C:639 case 0x135: 640 640 dscan = DIK_NUMPADSLASH; 641 641 break; 642 case 0x 5A:642 case 0x11c: 643 643 dscan = DIK_NUMPADENTER; 644 644 break; 645 case 0x 68:645 case 0x152: 646 646 dscan = DIK_INSERT; 647 647 break; 648 case 0x 60:648 case 0x147: 649 649 dscan = DIK_HOME; 650 650 break; 651 case 0x 62:651 case 0x149: 652 652 dscan = DIK_PGUP; 653 653 break; 654 case 0x 69:654 case 0x153: 655 655 dscan = DIK_DELETE; 656 656 break; 657 case 0x 65:657 case 0x14F: 658 658 dscan = DIK_END; 659 659 break; 660 case 0x 67:660 case 0x151: 661 661 dscan = DIK_PGDN; 662 662 break; 663 case 0x 5B:663 case 0x11D: 664 664 dscan = DIK_RCONTROL; 665 665 break; … … 668 668 break; 669 669 default: 670 dscan = scan ;670 dscan = scan & 0xFF; 671 671 } 672 672 return dscan; … … 677 677 678 678 SysKeyboardAImpl* This = (SysKeyboardAImpl*) current_keylock; 679 BYTE scan = (lParam >> 16) & 0xFF;679 WORD scan = (lParam >> 16) & 0x1FF; 680 680 /* fix the scancode, DInput only uses real scancodes in 90% cases */ 681 681 scan = scan2dinput(scan);
Note:
See TracChangeset
for help on using the changeset viewer.
