Vjoy not working

Need help with hardware? Game doesn't run? System wont boot? We might be able to help!

Moderators: Darksaber, Forceflow, decoy

Post Reply

Vjoy not working

Xerox
Recruit
Posts: 2
Joined: Tue Jan 07, 2020 2:01 pm

Post by Xerox » Tue Jan 07, 2020 2:07 pm

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

User avatar
DarHan
Cadet 1st Class
Rebel Alliance
Posts: 173
Joined: Mon Dec 05, 2005 12:01 am
Contact:

Post by DarHan » Tue Jan 07, 2020 6:28 pm

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.
“Red Four, nothing’s gone wrong yet.”
— Hobbie Klivian

Xerox
Recruit
Posts: 2
Joined: Tue Jan 07, 2020 2:01 pm

Post by Xerox » Tue Jan 07, 2020 6:48 pm

Oh, ok this was easy, Problem solved:-) Never used this as i never played that old games :D

Thank you for the quick help!

blue_max
Lieutenant JG
XWAU Member
Posts: 564
Joined: Wed Mar 20, 2019 5:12 am

Post by blue_max » Wed Jan 08, 2020 10:50 pm

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?

User avatar
ual002
Lieutenant JG
Galactic Empire
Posts: 531
Joined: Wed Sep 24, 2008 2:23 am

Post by ual002 » Thu Jan 09, 2020 7:51 pm

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.
For the glory of his majesty Emperor Palpatine! Image Image Image Image

blue_max
Lieutenant JG
XWAU Member
Posts: 564
Joined: Wed Mar 20, 2019 5:12 am

Post by blue_max » Fri Jan 10, 2020 9:22 pm

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?

ZanElJOK
Cadet 3rd Class
Rebel Alliance
Posts: 34
Joined: Fri Feb 13, 2009 3:30 am

Post by ZanElJOK » Sat Jan 11, 2020 6:14 pm

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.
May the Force be with you all.

blue_max
Lieutenant JG
XWAU Member
Posts: 564
Joined: Wed Mar 20, 2019 5:12 am

Post by blue_max » Sun Jan 12, 2020 2:41 am

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.

User avatar
Driftwood
Lieutenant Commander
XWAU Member
Posts: 1800
Joined: Wed Oct 22, 2003 11:01 pm
Contact:

Post by Driftwood » Sun Jan 12, 2020 2:52 am

Works perfectly!

ZanElJOK
Cadet 3rd Class
Rebel Alliance
Posts: 34
Joined: Fri Feb 13, 2009 3:30 am

Post by ZanElJOK » Wed Feb 05, 2020 7:19 pm

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
May the Force be with you all.

Post Reply