SimHub icon indicating copy to clipboard operation
SimHub copied to clipboard

[Feature request] Simulate keyboard press when button on steeringwheel is pressed

Open weemen opened this issue 2 years ago • 4 comments

First of all, maybe this is not a feature request but then I couldn't find the right documentation or I'm doing really difficult.

Is your feature request related to a problem? Please describe. Facts: I've got two rotary encoders on my steering wheel and when the encoder to the next position I can register button press + release.

Goal: What I want to do is the following. If encoder A is on position 1 then I want to see a custom traction control widget and use encoder B to change the traction control If encoder A is on position 2 then I want to see a throttle shaping widget and use encoder B to change the throttle behaviour etc etc

Each encoder has 12 positions (on my wheel). So in short I cannot combine my rotary encoders to change: "in car" settings. Normal buttons are really nice for things that want to have at hand at all times. Encoders at the bottom of your steeringwheel are I think great for creating "menu's" and change settings that you would change less frequent.

Describe the solution you'd like On your dash you can add a button which can emulate a key when you press it. Can we get something like this as function (in Javasscript) when we press a button or change an encoder on the steeringwheel? This allows a reusing the same buttons and encoders when they have a different context. I think this would would be super powerfull and opens a lot of new doors.

I would love to hear your feedback.

Describe alternatives you've considered If I'm doing difficult in combining rotary buttons I would love to hear it! Maybe I'm just a n00b

weemen avatar Oct 15 '23 14:10 weemen

Hi ! "MPS" are really rare in the controller world since they are not widely supported accross the games at my knowledge (If i'm not wrong Iracing is one of the very rare one). I will consider it for the future if somehow these kind of controls becomes less rare.

SHWotever avatar Oct 16 '23 06:10 SHWotever

Heeey @SHWotever, first of all thank you very much for your reply!

Your answer got me thinking if we were on the same page and if was clear enough on what I meant.

After a while I figured out that what you said makes total sense and that I miss a feature on my steering wheel. The rotary encoders on my wheel are just sending a pulse of 50ms while some wheels offer a continuous pulse when changing the rotary encoder.

So what I guess is what Im truly looking for is to emulate that specific behavior. One way was described above.

An alternative solution could be that via the keyboard plugin where you can assign buttons to keyboard presses. For the button we can select "short press" or "long press" etc. For the selected key on the keyboard we cant assign "short press" or "long press".

What do you think about this alternative approach?

Leon

weemen avatar Oct 21 '23 14:10 weemen

I do this using a combination of switchableproperties plugin for Simhub, software called Joystick Gremlin and vjoy

TNTPro avatar Nov 30 '23 21:11 TNTPro

@TNTPro cool thanks, I will definitely check this out!!

weemen avatar Dec 31 '23 13:12 weemen