Thread: Keydown
View Single Post
  #8  
Old 05-02-2009, 11:50 PM
[email protected] sid.gottlieb@googlemail.com is offline
Banned
Join Date: Mar 2008
Posts: 861
sid.gottlieb@googlemail.com will become famous soon enough
Quote:
Originally Posted by Gambet View Post
Yes they are:

PHP Code:
keydown(int keynumber) - returns if the specified key is pressed (0..10upleftdownrightSADMtabQP

Those are the default keynumbers that correspond to the specified keynames, which is why if you did
player.chat = keyname(0); it would return 'Up' and so forth.
In your method you are specifiying what the keys are. What if I were to edit my DEFAULT arrow keys to something like '1, 2, 3 and 4', your method would still be looking for your basic arrow keys
Reply With Quote