From: "Florent" Newsgroups: comp.os.msdos.djgpp Subject: code of up and down arrow ... Date: Wed, 2 Aug 2000 22:50:58 +0200 Organization: Aachen University of Technology (RWTH) Lines: 24 Message-ID: <8ma1hl$rfm$1@nets3.rz.RWTH-Aachen.DE> NNTP-Posting-Host: pupulse.oih.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 965249397 28150 137.226.149.42 (2 Aug 2000 20:49:57 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 2 Aug 2000 20:49:57 GMT X-Newsreader: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi, I'm looking for the way to detect that a user hit the keys up and down (arrows) I do it with the function _bios_keybrd in bios.h If I use _NKEYBRD_READ as command of the bios function what value should I test for it ? when I test it with a small example unsigned char c=_bios_keybrd(_NKEYBRD_READ); printf("%d",c); when a down or up are hit only 224 came as value ... but what I want is to do the difference between those 2 keys ... I can use getch but the fact that the value is 0+value to determine which key is pressed and it didn't work so well ... Any help would be appreciated, and sorry for my bad english ... Florent.