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 autolearn=ham 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-28 15:41:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!195.54.122.107!newsfeed1.bredband.com!bredband!newsfeed1.telenordia.se!algonet!pepsi.tninet.se!not-for-mail From: Stefan Skoglund Newsgroups: comp.lang.ada Subject: Re: GtkAda or Ada or a binding? Keys Date: Sat, 29 Sep 2001 00:41:48 +0200 Organization: Telenordia Message-ID: <3BB4FCAC.BB116704@ebox.tninet.se> References: <0onr7.9325$Ck.1581110@news6-win.server.ntlworld.com> NNTP-Posting-Host: du169-153.ppp.algonet.se Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: cubacola.tninet.se 1001716620 5932 195.100.153.169 (28 Sep 2001 22:37:00 GMT) X-Complaints-To: abuse@algo.net NNTP-Posting-Date: 28 Sep 2001 22:37:00 GMT X-Mailer: Mozilla 4.72 [en] (Win95; I) X-Accept-Language: sv,en,en-US Xref: archiver1.google.com comp.lang.ada:13498 Date: 2001-09-28T22:37:00+00:00 List-Id: "chris.danx" wrote: > 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. 1. You should pick up some gtk+ book for example dev. linux apps with gtk+ and gdk. What i'm saying is straight from the book. 2. you must create event handlers for key_press_event and key_release_event. remember that gtk+ by default doesnt emits key_release_event's . read up on gtk_widget_set_events hmm, i missunderstand you a little , that i said is mostly for games ie run along a path while blasting any poor enemies. 3. creating handlers for key_press_release will be enough.