r/javascript • u/APTman1010 • Aug 26 '26
KernelPlay-JS v0.5.0 Released — Unified Input Manager
https://github.com/Soubhik1000/kernelplayKernelPlay-JS v0.5.0 is now available.
This release introduces a new Unified Input Manager designed to provide a consistent API for handling keyboard, mouse, gamepad, and touch input.
The goal is to make input handling simpler at the game-logic level while keeping the underlying input devices abstracted away.
Example:
import { Input } from "kernelplay-js";
update(dt) {
const x = Input.getAxis("horizontal");
const y = Input.getAxis("vertical");
this.rb.addForce(800 * x, 800 * y);
if (Input.wasPressed("jump")) {
this.jump();
}
if (Input.isPressed("attack")) {
this.attack();
}
}
v0.5.0 also supports two ways of defining input bindings.
Programmatic registration:
Input.registerAction("shoot", {
keys: [KeyCode.Z, KeyCode.X],
buttons: [GamepadButton.X, GamepadButton.RB]
});
Or declarative JSON configuration:
{
"actions": {
"jump": {
"keys": ["Space", "ArrowUp"],
"buttons": ["A", "B"]
},
"go": {
"keys": ["x", "z"],
"buttons": ["DPadRight"]
}
}
}
The JSON approach is intended to make configurable controls and runtime key rebinding easier to implement without changing game logic.
This release is part of the ongoing work toward making KernelPlay-JS a more complete, Unity-inspired game engine for JavaScript.
Feedback and suggestions for the v0.5.x releases are welcome.
Duplicates
javascript • u/APTman1010 • 6d ago
KernelPlay JS v0.6.0 Released — Modular Architecture, Universal Renderer Cores & Decoupled Physics!
javascript • u/ShameResident4735 • Mar 05 '26
I'm building a Unity-inspired ECS Game Engine for JS - Just hit v0.2.0 with Major Performance Improvements
javascript • u/APTman1010 • Jul 28 '26
KernelPlay-JS v0.4.0 Coming Soon — New UI System and Official Beta Release
javascript • u/ShameResident4735 • Apr 05 '26
I'm building a Unity-inspired ECS Game Engine - Just hit Multiple Cameras Update !!!
javascript • u/APTman1010 • Sep 19 '26
Update Progress Post: introducing Modular Architecture, Universal Renderer Cores, and Decoupled Physics in kernelplay-js
javascript • u/APTman1010 • 15d ago
KernelPlay JS v0.6.0 Preview: Official TypeScript Support Is Coming!
gamedev • u/ShameResident4735 • Mar 09 '26
Game Jam / Event I'm building a Unity-inspired ECS Game Engine for JS - Just hit v0.2.0 with Major Performance Improvements
WebGames • u/ShameResident4735 • Apr 02 '26
I'm building a Unity-inspired ECS Game Engine - Just hit Multiple Cameras Update !!!
javascript • u/ShameResident4735 • Apr 20 '26
Progress Update: Sprite & Animation System in My ECS Game Engine in (kernelplay-js)
javascript • u/APTman1010 • Sep 08 '26
KernelPlay-JS Update: Giving Developers X-Ray Vision!
javascript • u/APTman1010 • Aug 12 '26
Building KernelPlay-JS together — looking for open-source contributors
EntityComponentSystem • u/timschwartz • Mar 09 '26
I'm building a Unity-inspired ECS Game Engine for JS - Just hit v0.2.0 with Major Performance Improvements
WebGames • u/ShameResident4735 • Mar 10 '26
I'm building a Unity-inspired ECS Game Engine for JS - Just hit v0.2.0 with Major Performance Improvements
webdevelopment • u/ShameResident4735 • Apr 02 '26
Open Source Project I'm building a Unity-inspired ECS Game Engine - Just hit Multiple Cameras Update !!!
GameDevelopment • u/ShameResident4735 • Apr 23 '26
Inspiration Progress Update: Sprite & Animation System in My ECS Game Engine in (kernelplay-js)
javascript • u/APTman1010 • May 25 '26