Bug #674
Scancodes in Amiga mode are wrong
Start date:
02/24/2021
Due date:
% Done:
0%
Estimated time:
0:00 h
Affected version:
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
Updated by Brian Flanagan about 3 years ago
- 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