From 35d9e0cc77baa06bf0b10217717e59583d628d70 Mon Sep 17 00:00:00 2001 From: Turanszki Janos Date: Mon, 25 Nov 2019 22:48:31 +0000 Subject: [PATCH] updated scripting docs --- Documentation/ScriptingAPI-Documentation.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/ScriptingAPI-Documentation.md b/Documentation/ScriptingAPI-Documentation.md index e537c5c90..47b5f064c 100644 --- a/Documentation/ScriptingAPI-Documentation.md +++ b/Documentation/ScriptingAPI-Documentation.md @@ -702,9 +702,9 @@ These provide functions to check the state of the input devices. Query input devices - [outer]input : Input - [void-constructor]Input() -- Down(int code, opt int type = INPUT_TYPE_KEYBOARD, opt int playerindex = 0) : bool result -- Check whether a button is currently being held down -- Press(int code, opt int type = INPUT_TYPE_KEYBOARD, opt int playerindex = 0) : bool result -- Check whether a button has just been pushed that wasn't before -- Hold(int code, opt int duration = 30, opt boolean continuous = false, opt int type = INPUT_TYPE_KEYBOARD, opt int playerindex = 0) : bool result -- Check whether a button was being held down for a specific duration (nunmber of frames). If continuous == true, than it will also return true after the duration was reached +- Down(int code, opt int playerindex = 0) : bool result -- Check whether a button is currently being held down +- Press(int code, opt int playerindex = 0) : bool result -- Check whether a button has just been pushed that wasn't before +- Hold(int code, opt int duration = 30, opt boolean continuous = false, opt int playerindex = 0) : bool result -- Check whether a button was being held down for a specific duration (nunmber of frames). If continuous == true, than it will also return true after the duration was reached - GetPointer() : Vector result - SetPointer(Vector pos) - HidePointer(bool visible)