✔️ NEW FEATURE: Control Mapping

Eggheads talking about bytes and stuff.
Post Reply
User avatar
Krishty
Site Admin
Posts: 1364
Joined: 2022-Jan-09, 00:59

✔️ NEW FEATURE: Control Mapping

Post 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.
User avatar
Krishty
Site Admin
Posts: 1364
Joined: 2022-Jan-09, 00:59

Re: 💡 OPEN FEATURE: Control Mapping

Post by Krishty »

It took forever but it’s almost finished.
image.png
image.png (133.12 KiB) Viewed 1183 times
Need to do a bit more testing; iron out a few small bugs.

Control handling in extensions has become much easier.
User avatar
Krishty
Site Admin
Posts: 1364
Joined: 2022-Jan-09, 00:59

Re: 💡 OPEN FEATURE: Control Mapping

Post 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.
User avatar
Krishty
Site Admin
Posts: 1364
Joined: 2022-Jan-09, 00:59

Re: 💡 OPEN FEATURE: Control Mapping

Post by Krishty »

A tiny little problem is the name of the currently selected profile not showing:
image.png
image.png (12.14 KiB) Viewed 971 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.
mikew
Data Genius
Posts: 603
Joined: 2022-Jan-09, 20:21

Re: 💡 OPEN FEATURE: Control Mapping

Post 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...
User avatar
Krishty
Site Admin
Posts: 1364
Joined: 2022-Jan-09, 00:59

Re: 💡 OPEN FEATURE: Control Mapping

Post 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 …
User avatar
Krishty
Site Admin
Posts: 1364
Joined: 2022-Jan-09, 00:59

Re: ✔️ NEW FEATURE: Control Mapping

Post by Krishty »

Feature is implemented.

I’ll post a tutorial and some instructions for nasty joysticks when I find the time!
mikew
Data Genius
Posts: 603
Joined: 2022-Jan-09, 20:21

Re: ✔️ NEW FEATURE: Control Mapping

Post 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 862 times
User avatar
Krishty
Site Admin
Posts: 1364
Joined: 2022-Jan-09, 00:59

Re: ✔️ NEW FEATURE: Control Mapping

Post by Krishty »

Fix on the way.

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

Code: Select all

result.current = &defaultProfile;
mikew
Data Genius
Posts: 603
Joined: 2022-Jan-09, 20:21

Re: ✔️ NEW FEATURE: Control Mapping

Post by mikew »

Yes, that works!
User avatar
Krishty
Site Admin
Posts: 1364
Joined: 2022-Jan-09, 00:59

Re: ✔️ NEW FEATURE: Control Mapping

Post by Krishty »

I found that sometimes, the control configuration dialog will look like this:

image.png
image.png (28 KiB) Viewed 55 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.
User avatar
Krishty
Site Admin
Posts: 1364
Joined: 2022-Jan-09, 00:59

Re: ✔️ NEW FEATURE: Control Mapping

Post by Krishty »

Post Reply