Register  |  FAQ  |  Search  |  Memberlist  |  Usergroups  |  Log in 
Reply to topic
 Using Functoin OnKeyDown() To end Player. 
zeno00


Joined: 06 Apr 2009
Posts: 16
Reply with quote
Hello,
Now I'd like to konw how can use the Function OnKeyDown()
With ESCAPE key to Exit The Player?
Thanks,


Last edited by zeno00 on Mon Apr 13, 2009 12:49 pm; edited 1 time in total
View user's profile Send private message
  
Vincent


Joined: 25 Dec 2006
Posts: 296
Reply with quote
Code:
function OnKeyDown(nChar)
   if (VK_ESCAPE==nChar) then
      Exit()
   end
end
View user's profile Send private message
  
zeno00


Joined: 06 Apr 2009
Posts: 16
Reply with quote
Okey Thanks alot Vincent.
View user's profile Send private message
  
aleezy


Joined: 25 Apr 2013
Posts: 1
Reply with quote
Nice surprise about this shorter form. Can you tell us what it is you are talking/writing about?
Has any info. about this shorter form been posted before (and i just missed it)?



remove links
View user's profile Send private message
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic