If i'm not mistaken you can get scan codes from port[$60]
if port[$60] < $80 then it means that a key is being pressed. If
port[$60]>$7f then it means that a key has been pressed.
To find out what key has been pressed, use the table below.
If you're planning to make a 2 player game, you can even use
each shift key seperately i.e left shift something and right
shift something else.
Hope it helps.
Key Code Key Code Key Code
Esc 1 A 30 Caps Lock 58
! or 1 2 S 31 F1 59
# or 3 4 F 33 F3 61
$ or 4 5 G 34 F4 62
% or 5 6 H 35 F5 63
^ or 6 7 J 36 F6 64
& or 7 8 K 37 F7 65
* or 8 9 L 38 F8 66
( or 9 10 : or ; 39 F9 67
) or 0 11 " or ' 40 F10 68
_ or - 12 ~ or ` 41 F11 133
+ or = 13 Left Shift 42 F12 134
Bksp 14 | or \ 43 NumLock 69
Tab 15 Z 44 Scroll Lock 70
Q 16 X 45 Home or 7 71
W 17 C 46 Up or 8 72
E 18 V 47 PgUp or 9 73
R 19 B 48 Gray - 74
T 20 N 49 Left or 4 75
Y 21 M 50 Center or 5 76
U 22 < or , 51 Right or 6 77
I 23 > or . 52 Gray + 78
O 24 ? or / 53 End or 1 79
P 25 Right Shift 54 Down or 2 80
{ or [ 26 Prt Sc or * 55 PgDn or 3 81
} or ] 27 Alt 56 Ins or 0 82
Enter 28 Spacebar 57 Del or . 83
Ctrl 29
/_//_//_/ /_//_//_/ /_//_//_/ /_/
/_/ /_/ /_/ /_/ /_/ /_/ /_/
/_/ /_/ /_/ /_/ /_/ /_/ /_/
/_/ /_/ /_/ /_/ /_/ /_/ /_/
/_/ /_/ /_/ /_/ /_/ /_/ /_/
/_/ /_/ /_/ /_/ /_/ /_/
/_//_//_/ /_//_//_/ /_//_//_/ /_/
\\|//
/ ^ \ \
\ _ /__________________________________________/
" To add spice to your life "
HOW TO SUBSCRIBE:
with the SUBJECT. SUBSCRIBE ODD
+-=-=- My Miscellaneous Home Page =-=-=-+
| http://www.geocities.com/Area51/9333 |
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
This list is operated on a when I like it basis.
It will include humour, proverbs and other neat
stuff. I will try to keep it on a daily basis.
=-=-=-=-=-=-=-=-= COPYRIGHT NOTICE =-=-=-=-=-=-=-=-=
All materials presented are owned by their authors.
They have been sourced from different areas.
=-=-=-=-=-=-=- FREE GIFT SUBSCRIPTION -=-=-=-=-=-=-=
You can subscribe a friend ( with their permission )
by sending mail with subject SUBSCRIBE ODD FRIEND
and typing their e-mail address in the body.
_ _ _
| Admin, ooO Ooo | || |
| Shawn Tan. ( ) ( ) _ _| || |
|==== \ ( ) / | | | __ |
/ ^ \_ \_) (_/ |_|_||__ \
\ _ / \_____/