Changeset 7191
- Timestamp:
- Oct 24, 2001, 3:19:10 PM (24 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
include/winscan.h (modified) (7 diffs)
-
src/user32/oslibmsgtranslate.cpp (modified) (3 diffs)
-
src/user32/winkeyboard.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/winscan.h
r7190 r7191 30 30 #define WINSCAN_BRACKETRIGHT 0x1b 31 31 #define WINSCAN_ENTER 0x1c 32 #define WINSCAN_PADENTER 0x1c 32 33 #define WINSCAN_CTRLLEFT 0x1d 33 34 #define WINSCAN_CTRLRIGHT 0x1d … … 45 46 #define WINSCAN_GRAVE 0x29 46 47 #define WINSCAN_SHIFTLEFT 0x2a 47 48 // @@@PH49 // not verified from here!50 48 #define WINSCAN_BACKSLASH 0x2b 51 49 #define WINSCAN_Z 0x2c … … 58 56 #define WINSCAN_COMMA 0x33 59 57 #define WINSCAN_PERIOD 0x34 60 #define WINSCAN_SLASH 0x35 58 #define WINSCAN_SLASH 0x35 59 #define WINSCAN_PADSLASH 0x35 61 60 #define WINSCAN_SHIFTRIGHT 0x36 62 61 #define WINSCAN_PADASTERISK 0x37 … … 77 76 #define WINSCAN_SCROLLLOCK 0x46 78 77 #define WINSCAN_PAD7 0x47 78 #define WINSCAN_HOME 0x47 79 79 #define WINSCAN_UP 0x48 80 80 #define WINSCAN_PAD8 0x48 81 81 #define WINSCAN_PAD9 0x49 82 #define WINSCAN_PAGEUP 0x49 82 83 #define WINSCAN_PADMINUS 0x4a 83 84 #define WINSCAN_PAD4 0x4b … … 88 89 #define WINSCAN_PADPLUS 0x4e 89 90 #define WINSCAN_PAD1 0x4f 91 #define WINSCAN_END 0x4f 90 92 #define WINSCAN_PAD2 0x50 91 93 #define WINSCAN_DOWN 0x50 92 94 #define WINSCAN_PAD3 0x51 95 #define WINSCAN_PAGEDOWN 0x51 93 96 #define WINSCAN_PAD0 0x52 97 #define WINSCAN_INSERT 0x52 94 98 #define WINSCAN_PADPERIOD 0x53 99 #define WINSCAN_DELETE 0x53 95 100 #define WINSCAN_SYSREQ 0x54 96 101 #define WINSCAN_RESET 0x55 … … 99 104 #define WINSCAN_F12 0x58 100 105 #define WINSCAN_BACKTAB 0x59 101 #define WINSCAN_ PADENTER 0x5a102 #define WINSCAN_ PADSLASH 0x5c106 #define WINSCAN_WINLEFT 0x5b 107 #define WINSCAN_WINRIGHT 0x5c 103 108 #define WINSCAN_PRINT 0x5d 109 #define WINSCAN_APPLICATION 0x5d 104 110 #define WINSCAN_ALTRIGHT 0x5e 105 111 #define WINSCAN_PAUSE 0x5f 106 #define WINSCAN_HOME 0x60107 #define WINSCAN_PAGEUP 0x62108 #define WINSCAN_END 0x65109 #define WINSCAN_PAGEDOWN 0x67110 #define WINSCAN_INSERT 0x68111 #define WINSCAN_DELETE 0x69112 112 #define WINSCAN_F23 0x6a 113 113 #define WINSCAN_F24 0x6b … … 129 129 #define WINSCAN_SIZE 0x7a 130 130 #define WINSCAN_NLS1 0x7b 131 #define WINSCAN_APPLICATION 0x7c132 131 #define WINSCAN_YEN 0x7d 133 132 #define WINSCAN_E13 0x7d 134 #define WINSCAN_WINLEFT 0x7e135 #define WINSCAN_WINRIGHT 0x7f136 133 #define WINSCAN_PA1 0x80 137 134 #define WINSCAN_F13 0x81 -
trunk/src/user32/oslibmsgtranslate.cpp
r7166 r7191 1 /* $Id: oslibmsgtranslate.cpp,v 1.6 4 2001-10-23 08:36:20phaller Exp $ */1 /* $Id: oslibmsgtranslate.cpp,v 1.65 2001-10-24 13:18:59 phaller Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 605 605 606 606 case WM_CHAR_SPECIAL: 607 {607 { 608 608 // @@@PH 609 609 // special char message from the keyboard hook … … 612 612 // AltGr is a very, very strange key! 613 613 UCHAR ucPMScanCode = CHAR4FROMMP(os2Msg->mp1); 614 if (PMSCAN_ALTRIGHT == ucPMScanCode) 615 { 616 ULONG flags = SHORT1FROMMP(os2Msg->mp1); 614 switch (ucPMScanCode) 615 { 616 case PMSCAN_ESC: 617 // Note: ESC generates a WM_CHAR under Windows, not under PM 618 // so we've got to post it to ourself here! 619 // WM_CHAR(0x0000001bh, 000010001h) 620 // @@@PH 621 break; 617 622 618 // we need very special treatment here for the 619 // poor, crippled AltGr key 620 621 if (flags & KC_KEYUP) 623 case PMSCAN_ALTRIGHT: 622 624 { 623 // key up 624 // 1 - generate a virtual LCONTROL-keypress 625 // 2 - send LMENU-keypress (NT emulates ALtGr w/ Ctrl-Alt!) 625 ULONG flags = SHORT1FROMMP(os2Msg->mp1); 626 627 // we need very special treatment here for the 628 // poor, crippled AltGr key 629 630 if (flags & KC_KEYUP) 631 { 632 // key up 633 // 1 - generate a virtual LCONTROL-keypress 634 // 2 - send LMENU-keypress (NT emulates ALtGr w/ Ctrl-Alt!) 635 } 636 else 637 { 638 // key down: 639 // 1 - generate a virtual LCONTROL-keypress 640 // 2 - send LMENU-keypress (NT emulates ALtGr w/ Ctrl-AltGr!) 641 } 626 642 } 627 else 628 { 629 // key down: 630 // 1 - generate a virtual LCONTROL-keypress 631 // 2 - send LMENU-keypress (NT emulates ALtGr w/ Ctrl-Alt!) 632 } 633 } 634 } 643 } /* switch */ 644 } /* case */ 635 645 // NO BREAK! FALLTHRU CASE! 636 646 -
trunk/src/user32/winkeyboard.cpp
r7190 r7191 1 /* $Id: winkeyboard.cpp,v 1.2 0 2001-10-24 12:26:56phaller Exp $ */1 /* $Id: winkeyboard.cpp,v 1.21 2001-10-24 13:19:00 phaller Exp $ */ 2 2 /* 3 3 * Win32 <-> PM key translation … … 175 175 /* 0x7a PMSCAN_SIZE */ , 0x00 ,FALSE 176 176 /* 0x7b PMSCAN_NLS1 */ , 0x00 ,FALSE 177 /* 0x7c PMSCAN_APPLICATION */ , VK_APPS , FALSE177 /* 0x7c PMSCAN_APPLICATION */ , VK_APPS ,TRUE 178 178 /* 0x7d PMSCAN_E13 */ , 0x00 ,FALSE 179 /* 0x7e PMSCAN */ , 0x00 ,FALSE180 /* 0x7f PMSCAN */ , 0x00 ,FALSE179 /* 0x7e PMSCAN_WINLEFT */ , VK_LWIN ,TRUE 180 /* 0x7f PMSCAN_WINRIGHT */ , VK_RWIN ,TRUE 181 181 /* 0x80 PMSCAN_PA1 */ , VK_PA1 ,FALSE 182 182 /* 0x81 PMSCAN_F13 */ , VK_F13 ,FALSE … … 712 712 /* 0x7a PMSCAN_SIZE */ , 0x00 ,FALSE 713 713 /* 0x7b PMSCAN_NLS1 */ , 0x00 ,FALSE 714 /* 0x7c PMSCAN_APPLICATION */ , WINSCAN_APPLICATION , FALSE714 /* 0x7c PMSCAN_APPLICATION */ , WINSCAN_APPLICATION ,TRUE 715 715 /* 0x7d PMSCAN_E13 */ , 0x00 ,FALSE 716 /* 0x7e PMSCAN */ , 0x00 ,FALSE717 /* 0x7f PMSCAN */ , 0x00 ,FALSE716 /* 0x7e PMSCAN */ , WINSCAN_WINLEFT ,TRUE 717 /* 0x7f PMSCAN */ , WINSCAN_WINRIGHT ,TRUE 718 718 /* 0x80 PMSCAN_PA1 */ , WINSCAN_PA1 ,FALSE 719 719 /* 0x81 PMSCAN_F13 */ , WINSCAN_F13 ,FALSE
Note:
See TracChangeset
for help on using the changeset viewer.
