Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin for multiple buttons (chords) to a single vJoy button #189

Open
GregWoods opened this issue Aug 29, 2020 · 0 comments
Open

Plugin for multiple buttons (chords) to a single vJoy button #189

GregWoods opened this issue Aug 29, 2020 · 0 comments

Comments

@GregWoods
Copy link

Is this even possible? I'm a C# developer, not afraid to get my hands dirty, but would appreciate some feedback if this is even possible within UCR, and any tips on where to start to write a plugin.

Use Case 1

I'm using a 5 position guitar pickup switch for a Flaps control
Unfortunately, these switches do not have 5 outputs, they have 3. In this example I will call them buttons 10, 11 and 12.

Switch position Button Input (assume other buttons are OFF if not listed) Example vJoy Output
1 10 5
2 10+11 6
3 11 7
4 11+12 8
5 12 9

So to ensure we detect Flaps position 1 is correctly sent, we must check that input button 10 is ON, AND button 11 is OFF

Use Case 2

Simulating Dual concentric rotary encoders with a normal push button encoder.
Used for things like COM and NAV radio tuning.

Action Button input Example vJoy Output
Anticlockwise 4 4
Clockwise 5 5
Anticlockwise while pressing down on button 3 + 4 6
Clockwise while pressing down on button 3 + 5 7
Button press 3 3
[optional] Button double click 3 dbl 2

Use Case 3

Using a toggle switch to add another group of buttons
In the above rotary encoder example, I should be able to create another 6 vJoy outputs just by flicking a toggle switch.

Toggle position Rotary encoder produces vJoy outputs...
1 2, 3, 4, 5, 6, 7 (as above) to tune NAV1
2 20, 21, 22, 23, 24, 25 to tune NAV2

Background

The physical device which does all this is already built, but is only half functional without a way to provide these mappings. I have an abandoned DirectInput + SimConnect project which would be able to do this, or I can ditch the LeoBodner joystick interface, and write my own microcontroller firmware. But at the moment, I'd take which ever option is the least work. UCR may be that option.
Either way, the ability to map multiple buttons to a single button would be a useful feature, particularly for home cockpit builders.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant