Bug #674
Scancodes in Amiga mode are wrong
Added by Paul Kitching about 3 years ago.
Updated about 3 years ago.
Description
It looks like the scancodes are using the AOZ ones, as they are both the same, and different to AMOS.
//#manifest: "amiga"
do
SKEY$=""
While SKEY$=""
SKEY$=Inkey$
Wend
SCODE=Scancode
If SCODE=33 then print "yes"
print SCODE
wait vbl
loop
Files
- File Amiga_Keymap.png Amiga_Keymap.png added
- Status changed from New to Rejected
- Assignee changed from Francois Lionet to Brian Flanagan
- Estimated time set to 0:00 h
They're returning the correct codes. Just un-comment the amiga manifest tag.
See attached key map image. Note that the keymap shows hexidecimal codes.
Scancode 33 you're checking for is the letter S. (That's a hex $21.)
AOZ code: 67 ($43)
Scancode $33 is the letter C. Is that what you were looking for?
AOZ code: 83 ($53)
Try this modified version of your example:
#manifest: "amiga"
do
SKEY$=""
While SKEY$=""
SKEY$=Inkey$
Wend
SCODE=Scancode
If SCODE=33 then print "yes"
print SKEY$,Hex$(SCODE,2),SCODE,Key Name$
wait vbl
loop
Also available in: Atom
PDF