Changeset 3631


Ignore:
Timestamp:
May 29, 2000, 11:30:17 PM (25 years ago)
Author:
mike
Message:

Discard messages received multiple times.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/changelog

    r3627 r3631  
    1  /* $Id: changelog,v 1.964 2000-05-28 19:50:13 sandervl Exp $ */
     1 /* $Id: changelog,v 1.965 2000-05-29 21:30:14 mike Exp $ */
    22
    33 2000-05-28: Michal Necasek <mike@mendelu.cz>
    4     - USER32:   MapVirtualKeyA fix for game Commandos (not complete)
     4    - DINPUT:   Discard messages received multiple times. Fixes keyboard
     5                in Fallout 1/2.
    56
    67 2000-05-28: Sander van Leeuwen <sandervl@xs4all.nl>
    78    - SHELL32:  Merged ShellExecuteA/W of latest Wine release (old version
    89                did not return process handle)
    9     - KERNEL32/USER32: 
     10    - KERNEL32/USER32:
    1011                Rewrote and cleaned up resource handling. FindResource(Ex)
    1112                now returns IMAGE_RESOURCE_DATA_ENTRY pointer.
     
    5859                FindResource(Ex)A/W: if resource not found, then try:
    5960                       - resource with user default language
    60                        - resource with system default language 
     61                       - resource with system default language
    6162                       - first available resource (any language)
    6263                (TODO: Need to check what NT really does)
     
    7879                redrawing of toolbar window in mIRC32) in SetWindowPos &
    7980                ShowWindow
    80     - KERNEL32: Partly implemented GetDiskFreeSpaceExA/W; need to add support 
     81    - KERNEL32: Partly implemented GetDiskFreeSpaceExA/W; need to add support
    8182                for 64 bits values!
    8283
  • trunk/src/dinput/dinput.cpp

    r3502 r3631  
    1 /* $Id: dinput.cpp,v 1.6 2000-05-09 18:58:40 sandervl Exp $ */
     1/* $Id: dinput.cpp,v 1.7 2000-05-29 21:30:17 mike Exp $ */
    22/*              DirectInput
    33 *
     
    626626   SysKeyboardAImpl* This = (SysKeyboardAImpl*) current_keylock;
    627627   BYTE  scan = (lParam >> 16) & 0xFF;
     628
     629   /* messages may arrive mustiple times; we need to check for duplicates */
     630   static HWND   oldhwnd = NULL;
     631   static UINT   oldmsg  = 0;
     632   static WPARAM oldwParam = 0;
     633   static LPARAM oldlParam = 0;
     634
     635   if ((hwnd == oldhwnd) && (msg == oldmsg) && (wParam == oldwParam) && (lParam == oldlParam)) {
     636      // we already saw this message
     637      return TRUE;
     638   }
     639   oldhwnd = hwnd; oldmsg = msg; oldwParam = wParam; oldlParam = lParam;
    628640
    629641   // fake a key up transition for typematic repeat
Note: See TracChangeset for help on using the changeset viewer.