Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

About cursorkeys...

How can I include cursorkeys (up,down,left,right) into my program? I have programmed a rallygame and those keys would be very important, if you know what I mean.

My computer is a IBM 486 25 Hz (4 mb RAM, 129 ,b ROM).




Comments

  • : How can I include cursorkeys (up,down,left,right) into my program? I have programmed a rallygame and those keys would be very important, if you know what I mean.

    : My computer is a IBM 486 25 Hz (4 mb RAM, 129 ,b ROM).


    You need to use an $INKEY loop to trap the key pressed.

    The key code should contain the Null character (0) plus the

    keyboard scan code of the key. You can find the scan codes

    for the cursor keys under "Keyboard Scan Codes" in QBASIC.


    Matthew Gross

    Acheron@Hotmail.com

    http://acheronx.resnet.tamu.edu


Sign In or Register to comment.