Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rbxts/clack

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rbxts/clack - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

27

out/keyboard.d.ts

@@ -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 @@ */

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc