Page 1 of 1

✔️ NEW FEATURE: Control Mapping

Posted: 2023-Jul-04, 11:10
by Krishty
I’ve started this in 2019 and it’s still not finished. The required API changes are almost done, though.

For the first release, there will be no GUI for remapping the controls. There will be is only GUI for displaying the current mapping, and you’ll have to go to the registry if you want to change it. I guess that’s a fair compromise between “help my joystick doesn’t work” and “we should release something this decade” …

Listing this here because it’s one of the things I definitely want to get done before a public release.

Re: 💡 OPEN FEATURE: Control Mapping

Posted: 2024-Feb-02, 23:23
by Krishty
It took forever but it’s almost finished.
image.png
image.png (133.12 KiB) Viewed 1278 times
Need to do a bit more testing; iron out a few small bugs.

Control handling in extensions has become much easier.

Re: 💡 OPEN FEATURE: Control Mapping

Posted: 2024-Feb-05, 00:51
by Krishty
I think it’s done. I’ll merge it into the repository soon.

There’s room for improvement, but later so. I can fly with my keyboard, my joystick, my game pad. Primary target reached.

Re: 💡 OPEN FEATURE: Control Mapping

Posted: 2024-Feb-05, 22:49
by Krishty
A tiny little problem is the name of the currently selected profile not showing:
image.png
image.png (12.14 KiB) Viewed 1066 times
But the solution is a matter that experts still need to find agreement on, so I won’t let that stop this ticket from being closed.

This feature is merged, but it’s too late to push the repository. Will do that tomorrow.

Re: 💡 OPEN FEATURE: Control Mapping

Posted: 2024-Feb-05, 23:10
by mikew
I was just about to throw out that now 20 year old Logitech FF joystick that we were having so much trouble with identifying axes 10 years ago. I'll rescue it for now...

Re: 💡 OPEN FEATURE: Control Mapping

Posted: 2024-Feb-06, 07:42
by Krishty
mikew wrote: 2024-Feb-05, 23:10 I was just about to throw out that now 20 year old Logitech FF joystick that we were having so much trouble with identifying axes 10 years ago. I'll rescue it for now...
Oh yes, please keep it around for a bit! I’ll follow up with instructions on how to flip axes this evening …

Re: ✔️ NEW FEATURE: Control Mapping

Posted: 2024-Feb-06, 20:53
by Krishty
Feature is implemented.

I’ll post a tutorial and some instructions for nasty joysticks when I find the time!

Re: ✔️ NEW FEATURE: Control Mapping

Posted: 2024-Feb-06, 21:11
by mikew
I'm getting an almost immediate crash with this latest release. I have no controller attached right now.
wdbg2.PNG
wdbg2.PNG (74.39 KiB) Viewed 957 times

Re: ✔️ NEW FEATURE: Control Mapping

Posted: 2024-Feb-06, 22:18
by Krishty
Fix on the way.

In TFXplorer.cpp, line 1084, before the closing brace, add:

Code: Select all

result.current = &defaultProfile;

Re: ✔️ NEW FEATURE: Control Mapping

Posted: 2024-Feb-06, 22:34
by mikew
Yes, that works!

Re: ✔️ NEW FEATURE: Control Mapping

Posted: 2024-Apr-04, 19:12
by Krishty
I found that sometimes, the control configuration dialog will look like this:

image.png
image.png (28 KiB) Viewed 150 times

There is a memory leak which, in addition to the graphical artifacts, makes the dialog slower with each invocation.

Will be fixed in the next version.

Re: ✔️ NEW FEATURE: Control Mapping

Posted: 2024-Apr-07, 21:36
by Krishty