WhiteMagic / JoystickGremlin

A tool for configuring and managing joystick devices.
http://whitemagic.github.io/JoystickGremlin/
GNU General Public License v3.0
313 stars 45 forks source link

Axis Default Position #448

Open f0gy opened 1 year ago

f0gy commented 1 year ago

How can I change the default position for axes from this: Untitled

to this: Untitled2

Since until I move the joystick for input, the game registers input as 50% active constantly.

f0gy commented 1 year ago

To add:

Default initialization of vJoy axis values in the settings tab does not work. (Tried all 8 axes)

WhiteMagic commented 1 year ago

That function is for exactly that purpose and works as expected on my system when I just tested it. It only kicks in when you activate a profile but I suspect that you've done this given you see vJoy outputs in the input viewer. I'm not exactly sure why that function wouldn't work in your case though. Is there anything you do that you wouldn't consider "normal" in your setup?

f0gy commented 1 year ago

Thanks for responding back.

I reinstalled my windows (clean from usb) just two days ago since I thought I had some issues with windows initially due to trying other virtual input emulators as well. Right now my setup is as standard as it gets with default settings with just games, vJoy, Joystick Gremlin and some other basic apps I use such as Discord. I didn't even install a browser to keep it simple.

Here is a video I recorded to demonstrate my issue, for each new process/game, the input is registered as at half (0% as the range is -100% to 100%). Hence whenever I start a game, my handbrake is always pulled halfway through until I pull the handbrake to register an input other than 0%. https://user-images.githubusercontent.com/112344532/187766572-748957d9-e2a7-4e55-8bf2-0ba793c7cb81.mp4

Also my config file for Joystick Gremlin (converted to txt, to be able to upload to GitHub).

s_hb_bb.txt

WhiteMagic commented 1 year ago

The link doesn't seem to work, but I think I know what's going on. You have a vJoy device that has one axis, but it's the RX one, which is axis 4 internally for Gremlin. In the default axis values, you have configured a value for axis 1, but that one doesn't exist (under that ID at least). So try changing the default value for axis 4 / rx.

f0gy commented 1 year ago

The issue persists with all axes enabled in vJoy config, and handbrake set to first axis.

The updated config file: updated.txt

Also previous video but through a Google Drive link: https://drive.google.com/file/d/1TovlLKc1D2tfL7VOBV5Lrdhy-iWe3uwm/view?usp=sharing

WhiteMagic commented 1 year ago

Whether or not a vJoy axis is being mapped to shouldn't make a difference for the default value aspect. So that configuration should set all axes to -1 upon activating the profile. Given it doesn't, have you tried creating an entirely new profile, just to exclude any odd remnants in the profile.

f0gy commented 1 year ago

Unfortunately a new profile with only axis mapped did not work (I made sure to set the initialization value to -1 for the new profile). I also tried adding a new vJoy device #2, with different number of axes and buttons, and created a new profile for it but that did not work as well.

WhiteMagic commented 1 year ago

That's definitely odd but also problematic, because I don't see that behaviour and there isn't really any good way to further debug this when the most simple setup behaves abnormally.

Chpouky commented 1 month ago

Did you ever figure it out ? I have the same issue, the Settings tab doesn't make any difference for default values. I tried creating a new profile, creating a new vJoy device, trying with a different Gremlin version, but nothing works.

Weird thing is that it worked at some point then stopped out of nowhere !