comp.lang.ada
 help / color / mirror / Atom feed
* GtkAda or Ada or a binding?  Keys
@ 2001-09-23 15:36 chris.danx
  2001-09-24  7:26 ` Jacob Sparre Andersen
                   ` (6 more replies)
  0 siblings, 7 replies; 20+ messages in thread
From: chris.danx @ 2001-09-23 15:36 UTC (permalink / raw)


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





^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2001-09-29 11:39 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

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