Page 1 of 1

Vjoy not working

Posted: Tue Jan 07, 2020 2:07 pm
by Xerox
Hello,

i just bought XWA as i saw that it is now working with Steam VR and i recently bought a Rift S.

I have a T Flight HOTAS i want to use for the game but i prefer to have my Rudder on my Z Axis which is not possible in the game so i decided to use Vjoy...i setup everything correctly but despite the fact that i changed the input to "vjoy" in the XWA Launcher it always selects my TFlight instead. Is there a way to force the game to use the Vjoy Stick?

Thanks for your help in advance!

Best Regards
Xerox

Re: Vjoy not working

Posted: Tue Jan 07, 2020 6:28 pm
by DarHan
Sorry if this works differently on your computer, but on Windows 7, you need to go to Windows’s game controller control panel, then click the “Advanced…” button to choose which joystick will be used by old games.

Re: Vjoy not working

Posted: Tue Jan 07, 2020 6:48 pm
by Xerox
Oh, ok this was easy, Problem solved:-) Never used this as i never played that old games :D

Thank you for the quick help!

Re: Vjoy not working

Posted: Wed Jan 08, 2020 10:50 pm
by blue_max
Xerox wrote:
Tue Jan 07, 2020 2:07 pm
I have a T Flight HOTAS i want to use for the game but i prefer to have my Rudder on my Z Axis which is not possible in the game so i decided to use Vjoy
Sounds like you're using the X axis to roll and the Z axis for yaw. Would you mind sharing more details about how you did this using vJoy?

Re: Vjoy not working

Posted: Thu Jan 09, 2020 7:51 pm
by ual002
On a separate note I was messing with testing XWA with a xbox style microsoft controller and also ran into axis assignment issues. XWA really needs a more comprehensive axis assignment system without having to use something like VJOY. Removing a layer of conversion between the controller and the actual game engine would be nice, and allow for people to come up with some inventive custom cockpit setups.

Re: Vjoy not working

Posted: Fri Jan 10, 2020 9:22 pm
by blue_max
I think I can swap the X-Z axes of the joystick inside ddraw without vJoy. I took a look at Reimar's code and now this seems doable. It might even be possible to use VR controllers instead of a joystick...

EDIT: Yes, the X-Z joystick axes can be swapped inside ddraw without vJoy. I wonder if there's any interest in things like these. Like maybe mapping arbitrary joystick axes to XWA game axes or something like that?

Re: Vjoy not working

Posted: Sat Jan 11, 2020 6:14 pm
by ZanElJOK
I made the x-z axis using thrustmaster's joystick mapping progam Target, and it is like learning how to fly all over again. Another thing I didn't think about when I did that was that its the same in the gun turret so before with the Joysitck I could control all directions with one hand and I was a decent shot. Now the joystick only does up and down my rudder controls the left and right, it has been a challenge and I am still not used to it. Nothing more practice can't handle.

Re: Vjoy not working

Posted: Sun Jan 12, 2020 2:41 am
by blue_max
Thanks ZanElJOK. I just updated the code so that the X-Z axes are only swapped while in the cockpit, so the gunner turret reverts to its original behavior.

Re: Vjoy not working

Posted: Sun Jan 12, 2020 2:52 am
by Driftwood
Works perfectly!

Re: Vjoy not working

Posted: Wed Feb 05, 2020 7:19 pm
by ZanElJOK
Just tried out the adjustments and it works even better than what i had originally. The new x axis is a straight yaw. straight left and right :rollsmilie3:. The original x-axis is more like a video game turn with pitch, roll all in one. The turret not having the change makes it so much easier to just control gun one hand versus relearning how to work the turret with the yaw on a different control mechanism. Thank you so much for figuring this one out blue_max