[AD] [ alleg-Bugs-3528398 ] [5.0.6]Weird keycodes |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: SourceForge.net <noreply@xxxxxxxxxx>
- Subject: [AD] [ alleg-Bugs-3528398 ] [5.0.6]Weird keycodes
- From: SourceForge.net <noreply@xxxxxxxxxx>
- Date: Sun, 20 May 2012 16:44:59 -0700
Bugs item #3528398, was opened at 2012-05-20 06:49
Message generated for change (Comment added) made by supernova26
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: super_nova (supernova26)
Date: 2012-05-20 16:44
Message:
Under windows, im using visual c++ 2010. Im using qwerty layout microsoft
keyboard. Im using defines but i cant get. So i used debug tool and
investigate the keycode when i release a key(ALLEGRO_EVENT_KEY_UP). And i
found those values. definied keycode is 75 but when i release space key,
allegro event system returns 74 as keycode. And my program cant work.
----------------------------------------------------------------------
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