jangxx / node-vjoy Goto Github PK
View Code? Open in Web Editor NEWNative Node bindings for the vJoy virtual joystick driver
License: MIT License
Native Node bindings for the vJoy virtual joystick driver
License: MIT License
pretty please.
I seriously need this thing for my project, can you please start making it?
Would it be possible to add the function FfbRegisterGenCB
so that FFB effects sent to vJoy can be picked up by this library? Currently I'm using a C# feeder to expose the FFB data through UDP, which is then read by an Electron app:
https://github.com/danieltian/cls-ffb/blob/master/vJoyUdpFeeder/vJoyUdpFeeder/Program.cs#L88
But it would be great if I could do this natively with node-vjoy
instead of having to run the C# feeder in the background.
Hi, firstly thanks for creating this package.
I have completed code that a) checks if vJoy is enabled, b) creates a device, and c) updates the axes and buttons.
All the code is running without any errors.
However, only part (a) and (b) seem to be working. None of the input (part c) is appearing when I run the "Monitor vJoy" application provided by vJoy.
Any ideas why this might be the case?
If I use the "vJoy Feeder (Demo)" application provided by vJoy, the inputs are working, so it is either an issue with my code or this package.
Here is a few snippets of my code:
if (vJoy.isEnabled()) {
console.log("INFO: vJoy is enabled.");
} else {
console.log("ERROR: vJoy is either not installed or not enabled.");
process.exit();
}
for (var i = 1; i <= 8; i++) {
if (vJoyDevice.status(i) != "free") {
continue;
} else {
break;
}
}
player.device = vJoyDevice.create(i);
if (player.device) {
// ...
} else {
// ...
}
// this code does not give errors as long as I map float from range -1 to 1, to the range 1 to 32768
device.axes.X.set(Math.floor((x + 1) / 2 * 32768) + 1);
device.axes.Y.set(Math.floor((y + 1) / 2 * 32768) + 1);
device.buttons[4].set(true);
I am using v2.2.0.0
of vJoy provided by njz3
.
Shortly after enabling monitoring of FFB events with enableFFBEvents
The node process hard exits with no error message.
Its random, it could be a few minutes, or a few seconds.
Hi jang!
i've been using your package alot recently.
However i'm having the issue that Joystick Gremlin doesn't support the new fork of njx3, as i am using this vjoy device as an input.
I already opened a ticket for Joystick Gremlin, but seeing their backlog i don't think it will be implemented very soon.
Do you think we could add an option to disable the warning?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.