Ignore:
Timestamp:
May 23, 2002, 9:13:00 AM (23 years ago)
Author:
sandervl
Message:

PF: Keyboard fixes for right alt & right shift

File:
1 edited

Legend:

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

    r8380 r8474  
    1 /* $Id: oslibmsgtranslate.cpp,v 1.86 2002-05-07 16:15:30 sandervl Exp $ */
     1/* $Id: oslibmsgtranslate.cpp,v 1.87 2002-05-23 07:13:00 sandervl Exp $ */
    22/*
    33 * Window message translation functions for OS/2
     
    628628            winMsg->lParam = winMsg->lParam | WIN_KEY_EXTENDED;
    629629
     630        //@PF PM does not add KC_ALT to right alt but win32 does it
     631        if (WinGetKeyState(HWND_DESKTOP, VK_ALTGRAF) & 0x8000) flags |= KC_ALT;
    630632#if 0
    631633//TODO
     
    637639
    638640#ifdef ALTGR_HACK
    639      
     641   
    640642        if (usPMScanCode == PMSCAN_ALTRIGHT)
    641643        {
     
    694696            // check for a lonesome ALT key ...
    695697            if ( (flags & KC_LONEKEY) &&
    696                 (winMsg->wParam == VK_LMENU_W) )
     698                ((winMsg->wParam == VK_LMENU_W) || (winMsg->wParam == VK_RMENU_W)) )
    697699            {
    698700              winMsg->message = WINWM_SYSKEYUP;
     
    762764              winMsg->message = WINWM_SYSKEYUP;
    763765              winMsg->lParam |= WIN_KEY_PREVSTATE;           
    764               winMsg->lParam |= WIN_KEY_ALTHELD;           
     766              // No ALTHELD for Alt itself ;)
     767              winMsg->lParam |= WIN_KEY_ALTHELD;           
    765768              winMsg->lParam |= 1 << 31;                              // bit 31, transition state, always 1 for WM_KEYUP
    766769          }
     
    10171020
    10181021      extramsg.lParam = msg->lParam & 0x00FFFFFF;
    1019       if(fl & KC_ALT)
     1022      if ((fl & KC_ALT) || (msg->lParam & WIN_KEY_ALTHELD))
    10201023        extramsg.lParam |= WIN_KEY_ALTHELD;
    10211024      if(fl & KC_PREVDOWN)
Note: See TracChangeset for help on using the changeset viewer.