Re: [AD] ALLEGRO_KEY_PAD_ENTER on Windows |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
On 03.04.2011 14:32, Peter Wang wrote:
On 2011-04-01, torhu<torhu.lists@xxxxxxxxxx> wrote:I wrote a small test program for trying out raw keyboard input (WM_INPUT). The Shift keys work perfectly, separate release events are actually being sent. On the other hand, there seem to be no flag for key repeats, so that would have to be hacked around. Would this be worth doing, what do people think?What is the problem with the shift keys currently? I didn't notice any problem them in Windows XP or Wine, but maybe it depends on the keyboard layout.
If both are down you won't get a key up event until both are released. Raw input also gets you a key down event for printscreen. No big deal, but still. Basically, raw input bypasses higher level features like menu hotkeys and repeat detection.
Raw input seems to bypass some key remappings, like when you use KeyTweak (the remapping feature is built into Windows, but doesn't come with a UI). Oddly not all of them. I don't know if this is good or bad, probably doesn't matter a whole lot.
I've adapted my test code to Allegro and it seems to work perfectly. Patch attached.
Attachment:
rawinput.diff
Description: /
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |