@rbxts/clack
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -24,2 +24,3 @@ /// <reference types="@rbxts/types" /> | ||
private trove; | ||
private keysDown; | ||
/** | ||
@@ -30,3 +31,4 @@ * Constructs a new keyboard object. | ||
/** | ||
* Checks if a key is down. | ||
* Checks if a key is down. This will only return `true` for keys | ||
* that were pressed and not processed. | ||
* @param keyCode | ||
@@ -41,2 +43,9 @@ * @returns `true` if the key is down. | ||
/** | ||
* The same as `isKeyDown()`, except will also work for key presses | ||
* that were processed. | ||
* @param keyCode | ||
* @returns `true` if the key is down. | ||
*/ | ||
isKeyDownAllowProcessed(keyCode: Enum.KeyCode): boolean; | ||
/** | ||
* Checks if both keys are down. | ||
@@ -53,2 +62,10 @@ * @param keyCodePrimary | ||
/** | ||
* The same as `isKeyComboDown()`, except will also work for key presses | ||
* that were processed. | ||
* @param keyCodePrimary | ||
* @param keyCodeSecondary | ||
* @returns `true` if both are down | ||
*/ | ||
isKeyComboDownAllowProcessed(keyCodePrimary: Enum.KeyCode, keyCodeSecondary: Enum.KeyCode): boolean; | ||
/** | ||
* Checks if at least one of the keys is down. | ||
@@ -65,2 +82,10 @@ * @param keyCode1 | ||
/** | ||
* The same as `isEitherKeyDown()`, except will also work for key presses | ||
* that were processed. | ||
* @param keyCode1 | ||
* @param keyCode2 | ||
* @returns `true` if one of the keys is down | ||
*/ | ||
isEitherKeyDownAllowProcessed(keyCode1: Enum.KeyCode, keyCode2: Enum.KeyCode): boolean; | ||
/** | ||
* Cleans up the keyboard. Disconnects all events. | ||
@@ -67,0 +92,0 @@ */ |
{ | ||
"name": "@rbxts/clack", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "User input helper classes", | ||
@@ -5,0 +5,0 @@ "main": "out/init.lua", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49313
576