Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change (or duplicate) joystick input? #206

Open
omgitsraven opened this issue Sep 5, 2021 · 2 comments
Open

How to change (or duplicate) joystick input? #206

omgitsraven opened this issue Sep 5, 2021 · 2 comments

Comments

@omgitsraven
Copy link

I'm trying to write a script that will smooth out joystick input values, and I'm not sure how to approach this: can I alter the values for an existing gamepad? Or can I create a new 'virtual' gamepad, and set its values to the modified values from the real one, and then map games to use the virtual one?

If I try to write anything to xbox360[0].leftStickX, the compiler tells me that leftStickX is read-only..... I've seen some examples on the website that use ppJoy.setAxis, but when I call this, FreePIE crashes? I've seen examples that use keyboard.setKey and mouse.setButton, but the only 'set' on joystick is joystick.setRange, which doesn't seem right?

Any nudge in the right direction for ways to approach this would be appreciated!

@AndersMalmgren
Copy link
Owner

Hi, please look into vjoy. It could work if the game works with dx input. There is a xinput plugin floating around too that can output xinput

@omgitsraven
Copy link
Author

Are there any script examples of vjoy in use? I'm not sure how to use these properties...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants