key codes for the left and right arrow keys

Started by ninjarider, August 30, 2006, 01:21:53 AM

Previous topic - Next topic

ninjarider

im using int16 to get the keycodes from the bios and i thought that the arrow keys were 37 and 39 and it is not working in my program.

sinsi

Use INT 16h, AH=10h to get extended keys, returns AH=scan code, AL=ASCII char.
I think AL=0 if an extended key is pressed but AH will have the code (up=48h,dn=50h,l=4bh,r=4dh).
Light travels faster than sound, that's why some people seem bright until you hear them.

ninjarider

thanks for the ah=10 part. i had to decode what it returned. it works now.