Project

General

Profile

Bug #674

Scancodes in Amiga mode are wrong

Added by Paul Kitching about 3 years ago. Updated about 3 years ago.

Status:
Rejected
Priority:
Normal
Target version:
-
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

Amiga_Keymap.png (88 KB) Amiga_Keymap.png Amiga Keymap (HEX codes) Brian Flanagan, 03/12/2021 01:01 PM
#1

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

Also available in: Atom PDF