Re: [AD] Revenge of the key_shifts troubles. |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
2007/10/28, Trent Gamblin <trentg@xxxxxxxxxx>:
> but there's still the problem of shift not being registered
> when numlock is on and a numpad number is
> pressed.
> [...]
Yes, to fix that error I was thinking that maybe we could use
the same as in "key[]". E.g.: when key[KEY_RSHIFT]
or key[KEY_LSHIFT] are pressed we activate the KB_SHIFT_FLAG
in "key_shifts".
We should add some code in "handle_key_press" and
"handle_key_release" (wkeybd.c) to update the "_key_shifts"
(with this we don't need GetAsyncKeyState anymore).