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=-1.9 required=5.0 tests=BAYES_00,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c9451537593407b7,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-09-23 08:46:04 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.mathworks.com!btnet-peer0!btnet!news5-gui.server.ntli.net!ntli.net!news6-win.server.ntlworld.com.POSTED!not-for-mail From: "chris.danx" Newsgroups: comp.lang.ada Subject: GtkAda or Ada or a binding? Keys X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Message-ID: <0onr7.9325$Ck.1581110@news6-win.server.ntlworld.com> Date: Sun, 23 Sep 2001 16:36:40 +0100 NNTP-Posting-Host: 62.253.8.75 X-Complaints-To: abuse@ntlworld.com X-Trace: news6-win.server.ntlworld.com 1001259644 62.253.8.75 (Sun, 23 Sep 2001 16:40:44 BST) NNTP-Posting-Date: Sun, 23 Sep 2001 16:40:44 BST Organization: ntlworld News Service Xref: archiver1.google.com comp.lang.ada:13270 Date: 2001-09-23T16:36:40+01:00 List-Id: 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