From: Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>
Subject: Re: Buffering inputted characters
Date: 1998/06/20
Date: 1998-06-20T00:00:00+00:00 [thread overview]
Message-ID: <358BEFB0.666D2636@cl.cam.ac.uk> (raw)
In-Reply-To: 898358420.19245.0.nnrp-08.c2de5e53@news.demon.co.uk
> What I would like to know is how I can get a program to look for
> (keyboard) input. It would check to see if there has been any, and carry
> out appropriate actions depending on the input. How can this be done
> *without holding up the rest of the program?*
Have you tried putting a call to Ada.Text_IO.Get_Immediate
into a task of its own that communicates any key presses via
entry calls to the main task of your game?
In case tasks have not yet been covered in your course, I highly
recommend you to read the tasks section of your Ada textbook before
you proceed. Tasks are an incredibly useful tool for video game
programming in Ada.
Markus
--
Markus G. Kuhn, Security Group, Computer Lab, Cambridge University, UK
email: mkuhn at acm.org, home page: <http://www.cl.cam.ac.uk/~mgk25/>
next parent reply other threads:[~1998-06-20 0:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <898358420.19245.0.nnrp-08.c2de5e53@news.demon.co.uk>
1998-06-20 0:00 ` Markus Kuhn [this message]
[not found] ` <898426975.29878.0.nnrp-06.c2de5e53@news.demon.co.uk>
1998-06-21 0:00 ` Thanks - now another query Markus Kuhn
1998-06-20 0:00 ` Buffering inputted characters Joel VanLaven
1998-06-20 0:00 ` Ada for Game programming Markus Kuhn
1998-06-20 0:00 ` Tom Moran
1998-06-21 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