Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   get key as string (https://forums.graalonline.com/forums/showthread.php?t=134261954)

Mark Sir Link 02-04-2011 09:44 PM

get key as string
 
Since using keycode remains the preferred way to handle things since it allows players default key's to be used, I would appreciate the ability to figure out what character is associated with a players default keys, for the purpose of creating instruction signs that have proper info on them.

usage

getkeydownstr(int) - returns string for given keydown code

getkeydownstr(5) would return "S", etc.

DustyPorViva 02-04-2011 09:56 PM

player.chat = keyname(0-10);

fowlplay4 02-04-2011 10:09 PM

req filled.

PHP Code:

//#CLIENTSIDE
function getkeydownstr(i) {
  return 
keyname(i);
} 


Mark Sir Link 02-04-2011 11:30 PM

oh


All times are GMT +2. The time now is 07:04 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.