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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable 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 13:25:06 PST Path: archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!213.56.195.71!fr.usenet-edu.net!usenet-edu.net!enst!enst.fr!not-for-mail From: "David Botton" Newsgroups: comp.lang.ada Subject: Re: GtkAda or Ada or a binding? Keys Date: Mon, 24 Sep 2001 16:14:28 -0400 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: References: <0onr7.9325$Ck.1581110@news6-win.server.ntlworld.com> Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1001363105 81473 137.194.161.2 (24 Sep 2001 20:25:05 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Mon, 24 Sep 2001 20:25:05 +0000 (UTC) To: Return-Path: X-pair-Authenticated: 63.161.15.130 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.4 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , List-Archive: Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:13299 Date: 2001-09-24T16:14:28-04:00 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" > 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