
Research
/Security News
10 npm Typosquatted Packages Deploy Multi-Stage Credential Harvester
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.
@rbxts/rbxts
Advanced tools
User input helper classes.
Below are examples of the input classes. The examples are not an exhaustive list of the APIs available.
The preferred input is based on the last input the user has made. Because players can change their desired input during gameplay, it is helpful to watch for these changes in order to help direct the player in the best way possible.
For instance, if there are UI elements that show the player the control schema for the game, using observePreferredInput can be used to dynamically change this display if the user switches between using a gamepad and using a mouse/keyboard.
print(`Preferred: ${tostring(getPreferredInput())}`);
observePreferredInput((preferred) => {
print(`Preferred: ${tostring(preferred)}`);
if (preferred === Clack.InputType.MouseKeyboard) {
print("Prefer mouse and keyboard");
} else if (preferred === Clack.InputType.Touch) {
print("Prefer touch");
} else if (preferred === Clack.InputType.Gamepad) {
print("Prefer gamepad");
}
});
Watch for mouse input.
const mouse = new Mouse();
mouse.getButtonDownSignal(Enum.UserInputType.MouseButton1).connect(() => {
print("Left button down");
});
print(mouse.getPosition());
const result = mouse.raycast(new RaycastParams());
Watch for keyboard input.
const keyboard = new Keyboard();
keyboard.keyDown.connect((keyCode) => {
print(`Key down: ${tostring(keyCode)}`);
});
keyboard.keyUp.connect((keyCode) => {
print(`Key up: ${tostring(keyCode)}`);
});
print("W down", keyboard.isKeyDown(Enum.KeyCode.W));
print("CTRL+S", keyboard.isKeyComboDown(Enum.KeyCode.LeftControl, Enum.KeyCode.S));
print("Forward", keyboard.isEitherKeyDown(Enum.KeyCode.W, Enum.KeyCode.Up));
Watch for gamepad input.
const gamepad = new Gamepad();
gamepad.buttonDown.connect((button) => {
print(`Button down: ${tostring(button)}`);
});
gamepad.setMotor(Enum.VibrationMotor.Large, 1);
gamepad.stopMotor(Enum.VibrationMotor.Large);
gamepad.pulseMotor(Enum.VibrationMotor.Large, 1, 0.2);
const leftThumbstickPos = gamepad.getThumbstick(Enum.KeyCode.Thumbstick1);
print(`Left thumbstick position: ${tostring(leftThumbstickPos)}`);
Watch for touch input.
const touch = new Touch();
touch.getTouchTapSignal().connect((touchPositions, processed) => {
print("Touched");
});
FAQs
User input helper classes
We found that @rbxts/rbxts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.