Keyboard Input

Hi
I am writing a tetris clone and i was wondering if anybody knew how to get keyboard input from the arrow keys so that i could use that information to controll the block.
Thanks
Cameron

Comments

  • Hello..
    U need to find the scan code for the array keys.There are ascii codes and scan codes for keyboard keys.The non ascii keys have unique scan code.U need to know about int86 function(it is bsically a interrupt) and also the kbhit function.For that matter u need to know the union REGS.Try these things and u will find the solution.
    All the best.
    Anand.

    : Hi
    : I am writing a tetris clone and i was wondering if anybody knew how to get keyboard input from the arrow keys so that i could use that information to controll the block.
    : Thanks
    : Cameron
    :

Sign In or Register to comment.

Howdy, Stranger!

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

Categories

In this Discussion