Question about ESC key

Pixilang programming language
Post Reply
brainmaster
Posts: 15
Joined: Thu Nov 22, 2007 1:32 pm
Location: The land of Colombian coffee

Question about ESC key

Post 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
:idea: BrainMaster :idea:
User avatar
NightRadio
Site Admin
Posts: 3944
Joined: Fri Jan 23, 2004 12:28 am
Location: Ekaterinburg. Russia
Contact:

Re: Question about ESC key

Post by NightRadio »

Hello!
Unfortunately, you can't use ESC key in pixi v1.2. But this feature will be in v1.3 :)
brainmaster
Posts: 15
Joined: Thu Nov 22, 2007 1:32 pm
Location: The land of Colombian coffee

Re: Question about ESC key

Post by brainmaster »

Very good NightRadio, I waiting for that.

Thanks for your answer.
:idea: BrainMaster :idea:
Post Reply