joystick hook

A Forum dedicated to the Suggestion, Creation and Editing of XWA Dynamic Link Library Files

Moderator: JeremyaFr

Re: joystick hook

MamiyaOtaru
Cadet 4th Class
Posts: 18
Joined: Mon Nov 04, 2019 4:17 am

Post by MamiyaOtaru » Sun Dec 13, 2020 9:01 pm

with the new xwa2020 megapack, I can't get more than 20fps in game (in menu shows 100+). If I replace Hook_Joystick_Ff.dll with a previous one (from July 22, 2020) my FPS is where it was before: 100+, dropping some with a ton of stuff on screen.

Alternatively, if I unplug my stick (Thrustmaster t16000m), FPS also goes back up.

Stick with old dll is fine. No stick with new dll (nov 29, 2020) is fine. Stick with new dll means FPS limited to 20. What's going on?

*edit* same issue with December 11 2020 dll

User avatar
JeremyaFr
XWAU Member
Posts: 3918
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Mon Dec 14, 2020 8:25 pm

WIP

Hello,
I've improved performance of the hook.

xwa_hook_joystick_ff_WIP_2012142124.zip
You do not have the required permissions to view the files attached to this post.

User avatar
JeremyaFr
XWAU Member
Posts: 3918
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Fri Dec 18, 2020 3:49 pm

UPDATE

Hello,
I've updated the joystick hook.
I've merged the changes from the WIP version into the stable version.

MamiyaOtaru
Cadet 4th Class
Posts: 18
Joined: Mon Nov 04, 2019 4:17 am

Post by MamiyaOtaru » Wed Dec 30, 2020 10:09 pm

cheers man, hook causing no performance degradation that I can see now :)

ChildOfGod32798
Recruit
Posts: 4
Joined: Tue Nov 08, 2016 6:43 pm

Post by ChildOfGod32798 » Fri Jan 08, 2021 1:56 am

Does anyone have a working profile for Thrustmaster Warthog? I keep getting unconntrollable left roll if my joystick is set as the roll controller with axis 2 used. I can fix the roll with a different axis on my throttle but that's not exactly very practical. Any suggestions?

killsinthenight
Recruit
Posts: 6
Joined: Tue Jan 12, 2021 8:31 am

Post by killsinthenight » Tue Jan 12, 2021 8:44 am

I'm running into an issue with my X-56, the axes on the stick work perfectly; however, as I like to map Roll to the top rotary on the throttle, i am not able to simultaneously map both the throttle and and the roll to the axes on the throttle device (even after the JoystickConfig update from 12/18/2020). Roll continues to be mapped to stick twist. (Unfortunately, VJOY is not a solution for me.) Any thoughts? Thank you in advance!!!

User avatar
ual002
XWAU Member
Posts: 983
Joined: Wed Sep 24, 2008 2:23 am

Post by ual002 » Tue Jan 12, 2021 4:48 pm

Can't say I've tried that setup myself, so I can't chime in, however I do have an X-56. Maybe I can try to replicate what you are trying and report back.

Question for everyone, has anyone tried to say setup an Xbox controller or have a working profile for one they got working that they could share?
Image Image Image Image Image

Luke_Skywalker
Cadet 1st Class
Posts: 160
Joined: Fri Mar 11, 2005 12:01 am

Post by Luke_Skywalker » Wed Jan 13, 2021 12:36 am

ChildOfGod32798 wrote:
Fri Jan 08, 2021 1:56 am
Does anyone have a working profile for Thrustmaster Warthog? I keep getting unconntrollable left roll if my joystick is set as the roll controller with axis 2 used. I can fix the roll with a different axis on my throttle but that's not exactly very practical. Any suggestions?
Don't forget that axes start with 0, not 1, so the uncontrollable roll might be tied to a different axis.
When 900 years old you reach, look as good, you will not. Hmm?" -Yoda

User avatar
JeremyaFr
XWAU Member
Posts: 3918
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sat Jan 16, 2021 9:48 pm

WIP

Hello,
Here is a WIP version of the joystick hook.

You can now select the controllers either by their index (position starting from 0) or by their ID (Product identifier).

xwa_hook_joystick_ff_WIP_2101162245.zip
You do not have the required permissions to view the files attached to this post.

killsinthenight
Recruit
Posts: 6
Joined: Tue Jan 12, 2021 8:31 am

Post by killsinthenight » Mon Jan 18, 2021 12:27 am

JeremyaFr wrote:
Sat Jan 16, 2021 9:48 pm
WIP

Hello,
Here is a WIP version of the joystick hook.

You can now select the controllers either by their index (position starting from 0) or by their ID (Product identifier).


xwa_hook_joystick_ff_WIP_2101162245.zip
thank you. is this part of the Mega Patch?

User avatar
JeremyaFr
XWAU Member
Posts: 3918
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Mon Jan 18, 2021 5:15 pm

UPDATE

Hello,
I've merged the changes from the WIP version into the stable version.

killsinthenight
Recruit
Posts: 6
Joined: Tue Jan 12, 2021 8:31 am

Post by killsinthenight » Mon Jan 18, 2021 9:38 pm

JeremyaFr wrote:
Mon Jan 18, 2021 5:15 pm
UPDATE

Hello,
I've merged the changes from the WIP version into the stable version.
Any updated force feedback hook creates a ghosting effect with every input, including this one, I have to revert. (using hotas and trackir)

User avatar
ual002
XWAU Member
Posts: 983
Joined: Wed Sep 24, 2008 2:23 am

Post by ual002 » Mon Jan 18, 2021 10:11 pm

I don't mean to derail, but are there modern Joysticks still offering force feedback?
Image Image Image Image Image

killsinthenight
Recruit
Posts: 6
Joined: Tue Jan 12, 2021 8:31 am

Post by killsinthenight » Wed Jan 20, 2021 6:27 am

JeremyaFr wrote:
Mon Jan 18, 2021 5:15 pm
UPDATE

Hello,
I've merged the changes from the WIP version into the stable version.
fook yea!!!! finally got it. reinstalled the updated Joystick FF hook, but then set the "select a joystick with force feedback" to -1 and activated FF in game.
so now on the X56, we have both throttle mapped to throttle (index 0) & roll mapped to throttle rotary (index 2)
kinda goofy work around but, we got it. thanks for your help JeremyaFr

mvantosh
Recruit
Posts: 3
Joined: Tue Oct 27, 2020 2:13 am

Post by mvantosh » Sun Feb 28, 2021 9:57 pm

does anyone have a gamepad they'd recommend? thinking about getting a ps4 controller (currently have a logitech f310) and am looking for something better, but not super expensive. thanks!

D_Dorchagraine
Recruit
Posts: 3
Joined: Tue Apr 06, 2021 12:29 pm

Post by D_Dorchagraine » Tue Apr 06, 2021 12:35 pm

Hello everyone. I am new to this forum but not to this game.
I had a question. I have the Rhino X56G Logitech Hotas. The hat switch you normally use for looking around, keeps on moving the look upwards in a complete circle, I changed the hat switch command to not use the hat switch anymore and it stopped it. However now if I select any switch on my control stick power to shields from lasers, target near craft, anything it changes the weapons by cycling through them. I have no figured out how to stop this from happening. I have changed and calibrated everything. Any suggestions?

I find it strange that the joystick when plugged by itself does this, I am not using the throttle as that will not work. It would be great if one day it does with a update. I have tried calibrating everything, setting all the buttons, double checking it and still this problem persists.
Angel from the Tie fighter conversion mod sent me over here for some help.

HunterZ
Recruit
Posts: 3
Joined: Fri Jul 02, 2021 9:09 pm

Post by HunterZ » Fri Jul 02, 2021 9:14 pm

Using Update 4.0 on Windows 10 with a Logitech Extreme 3D Pro.

If I set the deadzones to 95% in the Logitech software, and disable small movement (setting seems to have no effect BTW) in the Xwa Joystick Config tool, my ship drifts significantly to the right.

What's going on? With these deadzone settings I have to push the joystick almost to the edge to get it to respond, so why is it drifting within the deadzone, when the joystick driver is surely reporting that it's centered?

Edit: I *may* have solved it by bringing up the default Windows properties instead of the Logitech one in the Game Controllers control panel app, which allows you to recalibrate the joystick. You can access this by holding Ctrl+Shift while clicking Properties.

Also, unplugging and re-connecting the joystick's USB connector did *not* help.
Last edited by HunterZ on Fri Jul 02, 2021 9:32 pm, edited 1 time in total.

User avatar
Ace Antilles
Admiral (Moderator)
Posts: 7824
Joined: Sat Jan 22, 2000 12:01 am
Contact:

Post by Ace Antilles » Fri Jul 02, 2021 9:30 pm

HunterZ wrote:
Fri Jul 02, 2021 9:14 pm
Using Update 4.0 on Windows 10 with a Logitech Extreme 3D Pro.

If I set the deadzones to 95% in the Logitech software, and disable small movement (setting seems to have no effect BTW) in the Xwa Joystick Config tool, my ship drifts significantly to the right.

What's going on? With these deadzone settings I have to push the joystick almost to the edge to get it to respond, so why is it drifting within the deadzone, when the joystick driver is surely reporting that it's centered?
I have the same joystick and no issues.
Rename Hook_Joystick_Ff.dll to BackupHook_Joystick_Ff or something and try the in game settings
Chief XWAU Team annoying nitpicker.
Ace Antilles - The X-Wing Outpost
Image

User avatar
JeremyaFr
XWAU Member
Posts: 3918
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sat Sep 25, 2021 11:05 am

UPDATE

Hello,
I've updated the joystick hook.

I've added an indicator in the config tool to see which buttons are pressed.

User avatar
Forceflow
Fleet Admiral (Administrator)
Posts: 7198
Joined: Wed Oct 20, 1999 11:01 pm
Contact:

Post by Forceflow » Sat Sep 25, 2021 11:39 am

JeremyaFr wrote:
Sat Sep 25, 2021 11:05 am
UPDATE

Hello,
I've updated the joystick hook.

I've added an indicator in the config tool to see which buttons are pressed.
Oh that is awesome! I am sure many will appreciate this feature!
Murphy was an optimist! I am a pessimist!
And always remember that a smile is cheaper than a bullet! (District 9)
Webmaster of the X-Wing Alliance Upgrade Project

User avatar
theonegalen
Cadet 2nd Class
Posts: 74
Joined: Mon May 18, 2020 11:39 pm

Post by theonegalen » Tue Sep 28, 2021 11:12 pm

JeremyaFr wrote:
Sat Sep 25, 2021 11:05 am
UPDATE

Hello,
I've updated the joystick hook.

I've added an indicator in the config tool to see which buttons are pressed.
Bliss. Kudos. Magnificent.

Avarice1987
Cadet 1st Class
Posts: 200
Joined: Fri Oct 16, 2009 9:06 pm

Post by Avarice1987 » Fri Oct 22, 2021 10:33 pm

Can anyone tell me where the error is here?

A link with the settings of the joystick hook is attached

https://www.youtube.com/watch?v=53o35l099ok



https://ibb.co/yY3Zczf


MY problem is visible in the video, in the Contreoller setting in windows, the joystick is exactly in the middle, so should have no left rotation. in August everything still worked

Avarice1987
Cadet 1st Class
Posts: 200
Joined: Fri Oct 16, 2009 9:06 pm

Post by Avarice1987 » Sat Oct 23, 2021 5:53 am

Update: XWA Vanilla install all works fine, dont know where the Problem is, can anyone help?

User avatar
Ace Antilles
Admiral (Moderator)
Posts: 7824
Joined: Sat Jan 22, 2000 12:01 am
Contact:

Post by Ace Antilles » Sat Oct 23, 2021 12:54 pm

Avarice1987 wrote:
Sat Oct 23, 2021 5:53 am
Update: XWA Vanilla install all works fine, dont know where the Problem is, can anyone help?
You setup the joystick in the configuration option from the launcher.

If not rename hookjoystick.dll to something else and use the vanilla in game options.
Might have the name wrong as not on pc
Chief XWAU Team annoying nitpicker.
Ace Antilles - The X-Wing Outpost
Image

Avarice1987
Cadet 1st Class
Posts: 200
Joined: Fri Oct 16, 2009 9:06 pm

Post by Avarice1987 » Sat Oct 23, 2021 12:56 pm

I found the Fix in show my old post.

If I disable inverted rudder and enabled rudder then everything works ( i post it on 29.11.2020 in megamod thread

Post Reply