[AD] [ alleg-Bugs-3528398 ] [5.0.6]Weird keycodes

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


Bugs item #3528398, was opened at 2012-05-20 06:49
Message generated for change (Comment added) made by elias
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=3528398&group_id=5665

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core Library
Group: 5.1
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: super_nova (supernova26)
Assigned to: Nobody/Anonymous (nobody)
Summary: [5.0.6]Weird keycodes

Initial Comment:
In my code i need W,A,S,D,Left Shift,Space events. WASD working well but left shift and space keycodes are weird. Sometimes i get 60,70,74,... for space key and 214,212,210... for left shift key. Bu WASD works well.

----------------------------------------------------------------------

>Comment By: Elias Pschernig (elias)
Date: 2012-05-20 07:00

Message:
Which platform is this? And which language and which keyboard layout are
you using?

Also, what are those numbers? Do you mean the value of ALLEGRO_KEY_SPACE is
different each time?

It should always be 75 (although that's not guaranteed, you're supposed to
use the define):

https://github.com/elias-pschernig/allegro5/blob/6f341d2360fd3d7f0b452b08e0474bd028c14fd0/include/allegro5/keycodes.h



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=3528398&group_id=5665




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