comp.lang.ada
 help / color / mirror / Atom feed
From: "David C. Hoos, Sr." <david.c.hoos.sr@ada95.com>
Subject: Re: key strokes intercept
Date: 1999/03/30
Date: 1999-03-30T00:00:00+00:00	[thread overview]
Message-ID: <p4sSIKpe#GA.213@pet.hiwaay.net> (raw)
In-Reply-To: 370160f9.569041534@news.dsuper.net


fluffy_puff@dsuper.net wrote in message
<370160f9.569041534@news.dsuper.net>...
>Hi,
>
>I'm taking a programming course, using Ada 95, and I've played with VB
>and C++ before.  In Visual Basic I could use some pre-defined
>subprograms to control key strokes in real time (as they happened, as
>opposed to after the <Return> key has been pressed): KeyDown, KeyUp,
>KeyCode, stuff like that.
>
>How do I do this in Ada ?  I just need sort of a starting point where
>I can look for the info.  I have a beginner level book that's pretty
>good but doesn't touch this topic at all.  I couldn't find anything
>either in the online help I have.
>
There is a set of four Get_Immediate procedures defined in RM95 A.10.1
which get the next keystroke from either the Standard Input (usually
the keyboard) or from an open text file, and either return when the
next character is available, or set a Boolean variable indicating
whether there was a new character available.  The combinations of
these options make up the four overloaded procedures.

If you do not have the Ada95 Reference Manual (RM95), its available
in Windows Help format on my FTP site in the directory
ftp://ada95.com/pub/rm95-winhelp/

>What is "GNAT" ?

GNAT is a freely-availabel compiler of the GNU family, with
implementations on a wide variety of platforms -- various flavors of
UNIX, Windows9X/NT, DOS, Macintosh, etc.

The public versions produced by Ada Core Techoligies (ACT) are
available at ftp://ftp.cs.nyu/edy/pub/gnat, while others done by
volunteers are available at various places.

>All I can say about the compiler I use is what the "About" box shows:
>ObjectAda for Windows V7.1.105 (special edition)
>Copyright (c) 1997, Aonix.
>
This is an edition included with various textbooks, but is limited
in the size and complexity of the programs which it can produce.
There is a commercial version available without the limitations.







  parent reply	other threads:[~1999-03-30  0:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-30  0:00 key strokes intercept fluffy_puff
1999-03-30  0:00 ` Matthew Heaney
1999-03-30  0:00   ` Marin David Condic
1999-04-01  0:00     ` Aidan Skinner
1999-04-05  0:00       ` Marin David Condic
1999-03-30  0:00   ` Magnus Larsson
1999-03-30  0:00     ` Tom Moran
1999-03-31  0:00   ` fluffy_bud
1999-03-30  0:00 ` David C. Hoos, Sr. [this message]
1999-03-31  0:00   ` fluffy_bud
1999-04-01  0:00     ` Aidan Skinner
1999-03-31  0:00 ` Stephen Leake
1999-04-01  0:00   ` fluffy_doo
1999-04-01  0:00     ` Tom Moran
1999-04-02  0:00     ` Jerry van Dijk
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox