Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   Key object? (https://forums.graalonline.com/forums/showthread.php?t=134270057)

devilsknite1 07-20-2015 12:57 AM

Key object?
 
PHP Code:

Key object typeparent type is TStaticVar
Key
.addlistener(obj)
Key.backspace integer (read only)
Key.capslock integer (read only)
Key.control integer (read only)
Key.deletekey integer (read only)
Key.down integer (read only)
Key.end integer (read only)
Key.enter integer (read only)
Key.escape integer (read only)
Key.getascii() - returns integer
Key
.getcode() - returns integer
Key
.home integer (read only)
Key.insert integer (read only)
Key.isaccessible() - returns boolean
Key
.isdown(int) - returns boolean
Key
.istoggled(int) - returns boolean
Key
.left integer (read only)
Key.pgdn integer (read only)
Key.pgup integer (read only)
Key.removelistener(obj) - returns boolean
Key
.right integer (read only)
Key.shift integer (read only)
Key.space integer (read only)
Key.tab integer (read only)
Key.up integer (read only

Has anyone ever used this before? What does the object reference to? If it's an actual keyboard key, how do you return the object of it? Is it a MoveClip.key? If so, what the hell is that?

This is only accessible clientside apparently (?), and when I attempted to create this and output what it might do via .getfunctions(), it just output a bunch of random functions that didn't seem to add up:
PHP Code:

objecttype,clearemptyvars,loadjsonfromstring,insertarray,scheduleevent,addarraymember,geteditvarnames,savexmltostring,getarraymember,copyfrom,leave,sortascending,getfunctions,clearvars,subarray2,savejson,savevarstoarray,loadvars,isinclass,getstaticvarnames,ignoreevent,savestring,timershow,getdynamicvarnames,savevars,loadxmlfromstring,savelines,trigger,settimer,addnamedstring,loadfolder,split,getvarnames,catchevent,hasfunction,sortdescending,loadvarsfromarray,savexml,loadlines,savejsontostring,loadstring,join,loadjson,cancelevents,addarray,sortbyvalue,loadxml,loadini,ignoreevents 



All times are GMT +2. The time now is 06:55 AM.

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