VS:KeyDown/ja
.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix
Description
ファンクションキー以外のキーが押された場合、TRUEを返すと同時に押されたキーのASCIIコードを返します。
FUNCTION KeyDown(
VAR asciiCode :LONGINT) : BOOLEAN;
def vs.KeyDown(): return (BOOLEAN, asciiCode)
Parameters
asciiCode LONGINT 押されたキーのASCIIコード
Return Value
Example
WHILE NOT KeyDown(keyHit) DO BEGIN SysBeep; SysBeep; END; Message('The key pressed was ',keyHit); {an annoying example of one use of the KeyDown function}
Version
利用可能バージョン: MiniCAD