Changeset 7191


Ignore:
Timestamp:
Oct 24, 2001, 3:19:10 PM (24 years ago)
Author:
phaller
Message:

.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/winscan.h

    r7190 r7191  
    3030#define WINSCAN_BRACKETRIGHT    0x1b 
    3131#define WINSCAN_ENTER           0x1c 
     32#define WINSCAN_PADENTER        0x1c
    3233#define WINSCAN_CTRLLEFT        0x1d
    3334#define WINSCAN_CTRLRIGHT       0x1d
     
    4546#define WINSCAN_GRAVE           0x29 
    4647#define WINSCAN_SHIFTLEFT       0x2a 
    47 
    48 // @@@PH
    49 // not verified from here!
    5048#define WINSCAN_BACKSLASH       0x2b 
    5149#define WINSCAN_Z               0x2c 
     
    5856#define WINSCAN_COMMA           0x33 
    5957#define WINSCAN_PERIOD          0x34 
    60 #define WINSCAN_SLASH           0x35 
     58#define WINSCAN_SLASH           0x35
     59#define WINSCAN_PADSLASH        0x35
    6160#define WINSCAN_SHIFTRIGHT      0x36 
    6261#define WINSCAN_PADASTERISK     0x37 
     
    7776#define WINSCAN_SCROLLLOCK      0x46 
    7877#define WINSCAN_PAD7            0x47 
     78#define WINSCAN_HOME            0x47
    7979#define WINSCAN_UP              0x48
    8080#define WINSCAN_PAD8            0x48 
    8181#define WINSCAN_PAD9            0x49 
     82#define WINSCAN_PAGEUP          0x49
    8283#define WINSCAN_PADMINUS        0x4a 
    8384#define WINSCAN_PAD4            0x4b 
     
    8889#define WINSCAN_PADPLUS         0x4e 
    8990#define WINSCAN_PAD1            0x4f 
     91#define WINSCAN_END             0x4f
    9092#define WINSCAN_PAD2            0x50 
    9193#define WINSCAN_DOWN            0x50
    9294#define WINSCAN_PAD3            0x51 
     95#define WINSCAN_PAGEDOWN        0x51
    9396#define WINSCAN_PAD0            0x52 
     97#define WINSCAN_INSERT          0x52
    9498#define WINSCAN_PADPERIOD       0x53 
     99#define WINSCAN_DELETE          0x53
    95100#define WINSCAN_SYSREQ          0x54 
    96101#define WINSCAN_RESET           0x55 
     
    99104#define WINSCAN_F12             0x58 
    100105#define WINSCAN_BACKTAB         0x59 
    101 #define WINSCAN_PADENTER        0x5a 
    102 #define WINSCAN_PADSLASH        0x5c 
     106#define WINSCAN_WINLEFT         0x5b
     107#define WINSCAN_WINRIGHT        0x5c
    103108#define WINSCAN_PRINT           0x5d 
     109#define WINSCAN_APPLICATION     0x5d
    104110#define WINSCAN_ALTRIGHT        0x5e 
    105111#define WINSCAN_PAUSE           0x5f 
    106 #define WINSCAN_HOME            0x60 
    107 #define WINSCAN_PAGEUP          0x62 
    108 #define WINSCAN_END             0x65 
    109 #define WINSCAN_PAGEDOWN        0x67 
    110 #define WINSCAN_INSERT          0x68 
    111 #define WINSCAN_DELETE          0x69 
    112112#define WINSCAN_F23             0x6a 
    113113#define WINSCAN_F24             0x6b 
     
    129129#define WINSCAN_SIZE            0x7a 
    130130#define WINSCAN_NLS1            0x7b 
    131 #define WINSCAN_APPLICATION     0x7c 
    132131#define WINSCAN_YEN             0x7d 
    133132#define WINSCAN_E13             0x7d
    134 #define WINSCAN_WINLEFT         0x7e 
    135 #define WINSCAN_WINRIGHT        0x7f 
    136133#define WINSCAN_PA1             0x80 
    137134#define WINSCAN_F13             0x81 
  • trunk/src/user32/oslibmsgtranslate.cpp

    r7166 r7191  
    1 /* $Id: oslibmsgtranslate.cpp,v 1.64 2001-10-23 08:36:20 phaller Exp $ */
     1/* $Id: oslibmsgtranslate.cpp,v 1.65 2001-10-24 13:18:59 phaller Exp $ */
    22/*
    33 * Window message translation functions for OS/2
     
    605605     
    606606    case WM_CHAR_SPECIAL:
    607       {
     607    {
    608608        // @@@PH
    609609        // special char message from the keyboard hook
     
    612612        // AltGr is a very, very strange key!
    613613        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;
    617622         
    618           // we need very special treatment here for the
    619           // poor, crippled AltGr key
    620          
    621           if (flags & KC_KEYUP)
     623          case PMSCAN_ALTRIGHT:
    622624          {
    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            }
    626642          }
    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 */
    635645        // NO BREAK! FALLTHRU CASE!
    636646     
  • trunk/src/user32/winkeyboard.cpp

    r7190 r7191  
    1 /* $Id: winkeyboard.cpp,v 1.20 2001-10-24 12:26:56 phaller Exp $ */
     1/* $Id: winkeyboard.cpp,v 1.21 2001-10-24 13:19:00 phaller Exp $ */
    22/*
    33 * Win32 <-> PM key translation
     
    175175/* 0x7a PMSCAN_SIZE         */ , 0x00                       ,FALSE
    176176/* 0x7b PMSCAN_NLS1         */ , 0x00                       ,FALSE
    177 /* 0x7c PMSCAN_APPLICATION  */ , VK_APPS                    ,FALSE
     177/* 0x7c PMSCAN_APPLICATION  */ , VK_APPS                    ,TRUE
    178178/* 0x7d PMSCAN_E13          */ , 0x00                       ,FALSE
    179 /* 0x7e PMSCAN              */ , 0x00                       ,FALSE
    180 /* 0x7f PMSCAN              */ , 0x00                       ,FALSE
     179/* 0x7e PMSCAN_WINLEFT      */ , VK_LWIN                    ,TRUE
     180/* 0x7f PMSCAN_WINRIGHT     */ , VK_RWIN                    ,TRUE
    181181/* 0x80 PMSCAN_PA1          */ , VK_PA1                     ,FALSE
    182182/* 0x81 PMSCAN_F13          */ , VK_F13                     ,FALSE
     
    712712/* 0x7a PMSCAN_SIZE         */ , 0x00                       ,FALSE
    713713/* 0x7b PMSCAN_NLS1         */ , 0x00                       ,FALSE
    714 /* 0x7c PMSCAN_APPLICATION  */ , WINSCAN_APPLICATION        ,FALSE
     714/* 0x7c PMSCAN_APPLICATION  */ , WINSCAN_APPLICATION        ,TRUE
    715715/* 0x7d PMSCAN_E13          */ , 0x00                       ,FALSE
    716 /* 0x7e PMSCAN              */ , 0x00                       ,FALSE
    717 /* 0x7f PMSCAN              */ , 0x00                       ,FALSE
     716/* 0x7e PMSCAN              */ , WINSCAN_WINLEFT            ,TRUE
     717/* 0x7f PMSCAN              */ , WINSCAN_WINRIGHT           ,TRUE
    718718/* 0x80 PMSCAN_PA1          */ , WINSCAN_PA1                ,FALSE
    719719/* 0x81 PMSCAN_F13          */ , WINSCAN_F13                ,FALSE
Note: See TracChangeset for help on using the changeset viewer.