Re: [AD] standing Windows issues

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


At 03:57 PM 17/09/2004, you wrote:
On Monday 06 September 2004 19:20, aj wrote:
> i have done some investigation.

Thanks. I'll see what I can do with that information to correct the
problem. Can you reproduce the capslock/shift toggeling bug as well?

Evert


i suspect the problem is here:
/allegro4.1.15/src/win/wkeybd.c    line 151:


/* dirty hack to let Allegro for Windows use the DOS/Linux way of handling CapsLock */ if (((scancode == DIK_CAPITAL) || (scancode == DIK_LSHIFT) || (scancode == DIK_RSHIFT))
          && pressed
          && (_key_shifts & KB_CAPSLOCK_FLAG)) {
         keybd_event(VK_CAPITAL, 0, 0, 0);
         keybd_event(VK_CAPITAL, 0, KEYEVENTF_KEYUP, 0);
      }


the same code appears in 4.1.14  and  4.1.13 and 4.1.12   and the 4.0.3
has the problem existed for that long ?
(presuming the above code is the 'problem')
The comment tends to indicate this is a 'feature' not a bug. (again presuming this code is the cause).


aj.






Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/