Newbe question - what is the name of key W, A, S, D
Author |
Message |
isaiahk9
![](http://compsci.ca/v3/uploads/user_avatars/1465120414488e669e1f83a.jpg)
|
Posted: Wed May 07, 2008 12:10 pm Post subject: Newbe question - what is the name of key W, A, S, D |
|
|
This is a really newbish question, but I can't find it in the Turing aid section (F10). Anyway, what is the name of teh W, A, S, and D key. Up is like this :
(KEY_UP_ARROW)
What is W, A, S and D's ID for calling? |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
S_Grimm
![](http://compsci.ca/v3/uploads/user_avatars/18926424384e6d86e5cf4d6.jpg)
|
Posted: Wed May 07, 2008 12:28 pm Post subject: RE:Newbe question - what is the name of key W, A, S, D |
|
|
var chars : array char of boolean
Input.KeyDown (chars)
if chars ('w') then
put "The W key is pressed"
elsif chars ('a') then
put "The A key is pressed"
end if |
|
|
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
Posted: Wed May 07, 2008 12:43 pm Post subject: RE:Newbe question - what is the name of key W, A, S, D |
|
|
you'd obviously need to place that into a loop to work...
but A\V is right, alphanumeric keys are referred to by their character values. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
![](images/spacer.gif) |
isaiahk9
![](http://compsci.ca/v3/uploads/user_avatars/1465120414488e669e1f83a.jpg)
|
Posted: Wed May 07, 2008 5:07 pm Post subject: RE:Newbe question - what is the name of key W, A, S, D |
|
|
thanx |
|
|
|
|
![](images/spacer.gif) |
|
|