Changeset 7154 for trunk/src


Ignore:
Timestamp:
Oct 22, 2001, 7:00:58 PM (24 years ago)
Author:
phaller
Message:

.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/HOOK.CPP

    r6967 r7154  
    1 /* $Id: HOOK.CPP,v 1.25 2001-10-08 20:46:44 phaller Exp $ */
     1/* $Id: HOOK.CPP,v 1.26 2001-10-22 17:00:58 phaller Exp $ */
    22
    33/*
     
    829829  kbhs.vkCode      = msg->wParam;
    830830  kbhs.scanCode    = ( (msg->lParam & 0x00ff0000) >> 16);
     831 
     832  BOOL fKeyUp      = (msg->message == WM_KEYUP) ||
     833                     (msg->message == WM_SYSKEYUP);
     834  kbhs.flags       = fKeyUp ? LLKHF_UP : 0;
     835 
     836  // @@@PH seems not to work properly
     837  kbhs.flags      |= fAltDown ? LLKHF_ALTDOWN : 0;
     838  kbhs.flags      |= flagInjected ? LLKHF_INJECTED : 0;
     839  kbhs.flags      |= (msg->lParam & (1 << 24)) ? LLKHF_EXTENDED : 0;
     840 
     841/*
    831842  kbhs.flags       = ( (msg->lParam & (1 << 24)) ? LLKHF_EXTENDED : 0 ) |
    832843                     ( flagInjected ? LLKHF_INJECTED : 0) |
    833844                     fAltDown ? LLKHF_ALTDOWN : 0 |
    834845                     ( (msg->lParam & (1 << 31)) ? LLKHF_UP : 0);
     846                     */
    835847  kbhs.time        = msg->time;
    836848  kbhs.dwExtraInfo = 0; // @@@PH not supported?
Note: See TracChangeset for help on using the changeset viewer.