delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/21/21:45:48

From: muehlenf AT sbox DOT tu-graz DOT ac DOT at (Arndt Muehlenfeld)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Keyboard
Date: Fri, 21 Aug 1998 11:39:30 GMT
Organization: Graz University of Technology, Austria
Lines: 18
Message-ID: <35dd598f.2208585@avlgate>
References: <903476490 DOT 984559 AT polka> <35DB0926 DOT 7F3AA022 AT unb DOT ca> <35dc757a DOT 0 AT news DOT provide DOT net>
NNTP-Posting-Host: avlgate.avl.co.at
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On Thu, 20 Aug 1998 15:09:19 -0400, "Sean Middleditch"
<aweplay AT hotmail DOT com> wrote:

>I have found that 0 is returned before extended keys, or at least the F
>keys; arrow keys; and Home, Delete, etc. keys.  As for the left-alt vs.
>right-alt, I may be completely incorrect.
This is correct if you call Int 16h to get keyboard input.
The keyboard handler for Int 9h uses key scan codes which allow to
determine every key combination pressed by the user.
The extended function byte in scan codes is E0h which is in fact 224.
Make codes (key down) are distinguished from release codes (key up) by
a F0h byte. For example, when Escape is pressed, the make code is 01h.
Upon release the scan code bytes are F0h,01h.
Extended functions:
Right-Ctrl down:	E0h,14h
Right-Ctrl up:	E0h,F0h,14h

Arndt

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019