joystick hook

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

Moderator: JeremyaFr

Re: joystick hook

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

Post by JeremyaFr » Sat Jun 04, 2022 10:59 am

UPDATE

Hello,
I've updated the joystick hook.

I've added settings to control the small movement checks.

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

Post by JeremyaFr » Thu Jun 16, 2022 3:34 pm

UPDATE

Hello,
I've updated the joystick hook.

I've added code from @blue_max to support Diegetic Joystick in Effects DDraw.

CupcakeFS
Cadet 4th Class
Posts: 10
Joined: Sun Feb 07, 2021 8:50 pm

Post by CupcakeFS » Sun Jun 26, 2022 10:20 pm

Can you say anything about what the three small movement settings do? In the readme.txt on your Github, it says

Code: Select all

EnableSmallMovement = value
The default value is 1, which enable small movement.
When the value is 0, small movement is disabled.
SmallMovement_8C1CC2 = value
The default value is 64.
SmallMovement_8C1CC0 = value
The default value is 24.
SmallMovement_8C1CC4 = value
The default value is 64.
I could play around with them, but what do those three things correspond to?

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

Post by JeremyaFr » Sat Dec 31, 2022 4:25 pm

UPDATE

Hello,
I've updated the joystick hook.

It is now compatible with @blue_max 's gimbal lock fix in the latest Effects DDraw.

Bman
Lieutenant Commander
Posts: 1167
Joined: Mon Apr 05, 2004 11:01 pm

Post by Bman » Sat Dec 31, 2022 11:47 pm

.
Last edited by Bman on Sat May 20, 2023 2:44 am, edited 2 times in total.
W-I-P: TFTC, MC Viscount Cr., ISD-II Avenger, NL-1 Platform, Ton-Falk Esc. Cr., & Misc.

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

Post by JeremyaFr » Fri May 19, 2023 6:24 pm

UPDATE

Hello,
I've updated the joystick hook.

Changes are:
- add VirtualCockpitLookSensitivity setting

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

Post by JeremyaFr » Tue Jun 06, 2023 2:50 pm

UPDATE

Hello,
I've updated the joystick hook.

Changes are:
- add axis multiplicators settings

Kodachrome
Cadet 4th Class
Posts: 10
Joined: Wed Jul 07, 2021 10:50 am

Post by Kodachrome » Thu Aug 03, 2023 10:55 am

JeremyaFr wrote:
Fri Sep 04, 2020 12:05 pm
WIP

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

You can now have the main axis and buttons on separate controllers.
You can define more than 16 buttons and 4 POVs.

The hook zip contains a tool to configure the hook settings.
Image
Hi,

Just reusing the image there, but how exactly can one define more than 16 buttons in the Xwa Joystick Config tool? Even the screen shot above still shows just 16 buttons, despite the text.
Ive created a customer VJoy joystick with 26buttons and really do not want to have to manually map 10 of them to keyboard stokes in Joystick Gremlin!!

thanks,

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

Post by JeremyaFr » Thu Aug 03, 2023 4:33 pm

Hello,
You can find the latest version with this link:
https://github.com/JeremyAnsel/xwa_hook ... ick_ff.zip

Or with XwaHooksSetup.

What is displayed in the "System Controllers" tab?

Kodachrome
Cadet 4th Class
Posts: 10
Joined: Wed Jul 07, 2021 10:50 am

Post by Kodachrome » Thu Aug 03, 2023 9:52 pm

JeremyaFr wrote:
Thu Aug 03, 2023 4:33 pm
Hello,
You can find the latest version with this link:
https://github.com/JeremyAnsel/xwa_hook ... ick_ff.zip

Or with XwaHooksSetup.

What is displayed in the "System Controllers" tab?
Thanks, though that version performs no different, Buttons Screen is identical, max of 16 buttons plus 4 POV hat listed.
The Ssytem Controllers shows just my single VJoy controller (as I use HIDHide to make things cleaner and more compatible) as a device with 6 Axes and 26 buttons, which is correct.

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

Post by JeremyaFr » Fri Aug 04, 2023 4:55 am

Dis you click the "Init Buttons" button?

Kodachrome
Cadet 4th Class
Posts: 10
Joined: Wed Jul 07, 2021 10:50 am

Post by Kodachrome » Fri Aug 04, 2023 5:55 am

JeremyaFr wrote:
Fri Aug 04, 2023 4:55 am
Dis you click the "Init Buttons" button?
Damn it, I was sure I spammed both those Init buttons, definately on the original/shipped version of it with latest XWAU/TFTC 1.3, but just tried on this version and yes, other buttons to map to magically appeared. Thanks!

EDIT:
Should point out that while its working in game, on launch with this version of the joystick hook and 2020 patched XWAU and TFTC 1.3.3 I get about 8 pop up errors on launch, each with a diff 0x000xxxxxx code, as per :
joystick hook error.png
You do not have the required permissions to view the files attached to this post.

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

Post by JeremyaFr » Fri Aug 04, 2023 11:26 am

Kodachrome wrote:
Fri Aug 04, 2023 5:55 am
Should point out that while its working in game, on launch with this version of the joystick hook and 2020 patched XWAU and TFTC 1.3.3 I get about 8 pop up errors on launch, each with a diff 0x000xxxxxx code, as per :
The game loads all DLLs where the name start with "Hooks_".
So if you have both "Hook_Joystick_Ff.dll" and "Hook_Joystick_Ff - Copy.dll" then an error message appears.

User avatar
sedenion
Cadet 2nd Class
Posts: 78
Joined: Tue Feb 26, 2019 10:36 am

Post by sedenion » Fri Jan 19, 2024 10:50 am

Hi,

I have a feature/moditifcation suggestion for the Joystick Configurator. Currently, in case of multiple devices, the configuration use an internal device "index" as primary identifier, which I suppose is simply the order Windows provide devices list. The problem is that this order may changes depending various parameters (don't know exactly what, but, it does changes), and particularly if you add, plug / unplug devices. As example, I have the HOTAS Warthog, which is seen as two separated devices in native, and the index of joystick and throttle may changes, joystick become 1 and throttle 0 or the inverse.

A better approach would be to use the device hardware UUID (which is unique to a device) as primary identifier, this way, configuration can still reliable wathever the currently plugged devices and the order they are listed by the system...

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

Post by JeremyaFr » Fri Jan 19, 2024 1:08 pm

Hello,
Does it work if you set the controller ID instead of the index as shown in the config tool?

User avatar
sedenion
Cadet 2nd Class
Posts: 78
Joined: Tue Feb 26, 2019 10:36 am

Post by sedenion » Fri Jan 19, 2024 5:12 pm

JeremyaFr wrote:
Fri Jan 19, 2024 1:08 pm
Hello,
Does it work if you set the controller ID instead of the index as shown in the config tool?
I guess this would work for axes assignment, but buttons still assigned by device index

Post Reply