QBasic Tutorial 34 - Moving An Object With Arrow Keys - PC Keyboard Scan Codes - QB64

Опубликовано: 02 Август 2011
на канале: SchoolFreeware
15,355
60

http://www.SchoolFreeware.com

This tutorial will modify the code used within Tutorial 33

To use the arrow keys, we need to know the PC Keyboard Scan Codes for keyboard arrow keys.

http://www.jimprice.com/jim-asc.shtml...

Up Arrow -         CHR$(0) + CHR$(72)
Down Arrow -    CHR$(0) + CHR$(80)
Right Arrow -     CHR$(0) + CHR$(77)
Left Arrow -        CHR$(0) + CHR$(75)