This method of yours actually works nicely, but i see an issue.
Okay so im using an H shifter /game shifter right, now eg. I press clutch yes it engages, lets say i put it in 1st gear and press clutch, then it goes to neutral as expected, and released it goes to gear, but now when pressing clutch and selecting gear without yet releasing clutch it already goes into selected gear while clutch is still pressed, i think this issue is where the last pressed key overrides any key pressed and held down, but also does not notice key is still pressed after previous button is released, does this make sense the way i explained it? Do you perhaps know what the issue is?
Thank you for the help though.
Edit: another thing, im also using pedals, how can i use an axis mapping for the clutch rather than an action mapping, i always struggle with this because of the axis value, where do i even plug it in because ‘set target gear’ uses an integer, and yes the float value from the axis mapping can convert, but that will only cause the target gear to go to 1 because axis mapping is set to 1.0. Any idea how i can use axis mapping? And maybe have it engage only when pedal is at 0.5?