delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/05/07/06:02:05

From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: HELP: Get shift-cursor key combination.
Date: 7 May 2003 09:47:27 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 14
Message-ID: <b9aknf$9gt$1@nets3.rz.RWTH-Aachen.DE>
References: <JP2ua.53948$3M4 DOT 1388583 AT news1 DOT tin DOT it>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 1052300847 9757 137.226.32.75 (7 May 2003 09:47:27 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 7 May 2003 09:47:27 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Simone Navari <simnav AT email DOT it> wrote:
> I had to catch te key combination Shift+cursor keys: I tried reading 
> scancode but what I obtained is simply the cursor key scancode. How can I 
> resolve the problem ?

I'm not quite sure without a reference book at hand, but I think
you'll have to look at the shift state at the time of that scan code.
Or even parse shift key presses and releases yourself, i.e. go even
further down the keyboard handling chain than scan codes, to do this.

Odds are it isn't worth the bother.
-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


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