GithubHelp home page GithubHelp logo

jangxx / node-vjoy Goto Github PK

View Code? Open in Web Editor NEW
20.0 20.0 1.0 909 KB

Native Node bindings for the vJoy virtual joystick driver

License: MIT License

Python 0.95% C 28.04% C++ 55.22% JavaScript 15.79%

node-vjoy's People

Contributors

jangxx avatar mikey0000 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

mikey0000

node-vjoy's Issues

Feeding not working

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.

Update library SDK version

The library is currently built upon 544 while a more recent version has released and is installed on my machine
image

Process Exits Randomly when monitoring FFB

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.

ability to suppress the SDK Warning

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.