Google Groups Home
Help | Sign in
Message from discussion Accessing ESC key in FreePascal
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Mario Donick  
View profile
 More options 4 Jul, 16:36
Newsgroups: rec.games.roguelike.development
From: Mario Donick <mario.don...@gmail.com>
Date: 04 Jul 2008 15:36:44 GMT
Local: Fri 4 Jul 2008 16:36
Subject: Re: Accessing ESC key in FreePascal
Am Fri, 04 Jul 2008 16:56:15 +0200 schrieb Michal Bielinski:

> On Fri, 04 Jul 2008 12:01:39 +0200, Mario Donick
> <mario.don...@gmail.com> wrote:
>> I wait for a keyevent with GetKeyEvent. Afterwards, I process it with
>> TranslateKeyEvent and KeyEventToString, for example:

> No point in using KeyEventToString to identify keys. It creates
> overhead. GetKeyEventCode is all you need.

Hmmm, okay. I will try to rewrite my input routines that way.

> Note that under Unix escape still needs to be pressed twice to be read.

Is this intended or a bug? If intended: by Linux or by FreePascal? Is
there a way to deal with this, except telling the player that he has to
press ESC twice?

I already see the complaints of Krice (although he might not use Unix):
"Why do I have to press ESC twice? Are you retarded?" ;-)

Thank you for the hints :)

Mario Donick

--
LambdaRogue -- The Book of Stars (http://donick.net/lr)


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google