From: "David Botton" <David@Botton.com>
To: <comp.lang.ada@ada.eu.org>
Subject: Re: GtkAda or Ada or a binding? Keys
Date: Mon, 24 Sep 2001 16:14:28 -0400
Date: 2001-09-24T16:14:28-04:00 [thread overview]
Message-ID: <mailman.1001363062.27045.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: 0onr7.9325$Ck.1581110@news6-win.server.ntlworld.com
You may also want to start with GWindows (if you are on Windows) which is a
lot easier and has a number of very nice tutorials to get you started in GUI
programming. (http://www.adapower.com/gwindows)
Later if you need the cross platform support you can go back to GtkAda.
David Botton
BTW You may want to try in the future asking the GtkAda e-mail list first
when looking for specifics.
----- Original Message -----
From: "chris.danx" <chris.danx@ntlworld.com>
> Hi,
>
> Does GtkAda have any support for getting key presses from the user? The
> problem I've got is to use GtkAda to make Tetris like game (in order to
> improve my understanding of GtkAda. What? It's less boring than making a
> spreadsheet or something). I need a way to check if there are any key
> presses pending, if there are then I need to get them and do the
appropriate
> action.
>
> In TPascal it would probably make use of readkey and keypressed. If
GtkAda
> doesn't support such a thing (which is likely) what about Ada? Is there a
> way to check for an input in the buffer, and get it if there is? Will I
> have to bind to C or something? Or is there another solution?
>
> I thought about using get(character) but that'd mean the user would have
to
> input a character on every step and it wouldn't go anywhere until it got
> one.
>
> Thanks,
> Chris
next prev parent reply other threads:[~2001-09-24 20:14 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-23 15:36 GtkAda or Ada or a binding? Keys chris.danx
2001-09-24 7:26 ` Jacob Sparre Andersen
2001-09-24 13:43 ` Ted Dennison
2001-09-24 9:23 ` Emmanuel Briot
2001-09-24 20:14 ` David Botton [this message]
2001-09-24 20:27 ` Preben Randhol
2001-09-25 18:41 ` David Botton
[not found] ` <00af01c145f1$a9cd8d60$0100a8c0@DBINSPIRON>
2001-09-25 20:10 ` David Botton
2001-09-24 20:51 ` chris.danx
2001-09-28 22:43 ` Stefan Skoglund
2001-09-29 11:39 ` Aidan Skinner
2001-09-25 18:09 ` tmoran
2001-09-25 19:48 ` chris.danx
2001-09-25 20:09 ` David Botton
2001-09-25 20:59 ` chris.danx
2001-09-26 17:23 ` Sergey Koshcheyev
2001-09-25 4:48 ` Bobby D. Bryant
2001-09-28 22:32 ` Stefan Skoglund
2001-09-28 22:41 ` Stefan Skoglund
2001-09-28 22:45 ` Stefan Skoglund
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox