From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c9451537593407b7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-09-24 02:27:11 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!212.43.194.69!fr.clara.net!heighliner.fr.clara.net!proxad.net!feeder2-1.proxad.net!not-for-mail Sender: briot@lyon.act-europe.fr Newsgroups: comp.lang.ada Subject: Re: GtkAda or Ada or a binding? Keys References: <0onr7.9325$Ck.1581110@news6-win.server.ntlworld.com> From: Emmanuel Briot Reply-To: briot@act-europe.fr Date: 24 Sep 2001 11:23:26 +0200 Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.105 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 213.228.58.160 X-Trace: 1001323630 news-test.free.fr 6099 213.228.58.160 Xref: archiver1.google.com comp.lang.ada:13280 Date: 2001-09-24T11:23:26+02:00 List-Id: "chris.danx" writes: > 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. Of course it does, like most GUI toolkits. How would a text editor work otherwise, for instance ? Consider the signal defined in Gtk.Widget, call key_press_event. You might also want to read a X-Window or Win32 manual (depending on your system), if you are not confident enough with programming GUI toolkits. Emmanuel