Page 1 of 1

Question about ESC key

Posted: Mon Dec 10, 2007 12:45 am
by brainmaster
Hi, I've a question. :?: :?:

Maybe exist some way to use the ESC key, for example, to exit of main program, stop animation, and others.

I try use 27 how decimal ASCII code but don't work. Perhaps I did mistake in something or ESC is not accessible key.

The follow is a code that I was use.

Code: Select all

handle_hard_keys(
{
str=ghk
if str=27 
{
print("ESC pressed",-100,-35,WHITE)
}
}
,
{
}
)
Thanks

Re: Question about ESC key

Posted: Mon Dec 10, 2007 8:06 am
by NightRadio
Hello!
Unfortunately, you can't use ESC key in pixi v1.2. But this feature will be in v1.3 :)

Re: Question about ESC key

Posted: Mon Dec 10, 2007 9:58 am
by brainmaster
Very good NightRadio, I waiting for that.

Thanks for your answer.