WhiteMagic / JoystickGremlin

A tool for configuring and managing joystick devices.
http://whitemagic.github.io/JoystickGremlin/
GNU General Public License v3.0
313 stars 45 forks source link

Feature request: Axis to buttons with relative movement triggering actions #456

Closed morgangrubb closed 1 year ago

morgangrubb commented 1 year ago

What I mean by this:

This is specifically to work around the fact that MSFS doesn't have trim axes for roll and yaw (but does for pitch, go figure) and instead accepts button presses in either direction.

This is the axis to button configuration I have at the moment: convert trim axis to buttons xml - Joystick Gremlin 2022-10-12 6_22_22 PM

This configuration results in a fairly large deadzone and overeager mashing of the buttons once the axis enters the activation zone which is defined in absolute terms.

I apologise if this is already possible and I just haven't been able to figure it out.

Cheers

WhiteMagic commented 1 year ago

This is an unlikely kind of condition to be added, at least not any time soon. The reason is that all conditions in Gremlin are unaware of history, i.e. they get a singular input and react to it. It likely isn't breaking the current or future interface for conditions, so it likely would be implementable without redoing things touching it. Though it is not something that would be a high priority. The main reason is that using user plugins this is already solvable, for example, https://gist.github.com/WhiteMagic/ff636574b45a12480fd0bd6f1a92740e will send vjoy button presses based on relative axis changes.

morgangrubb commented 1 year ago

That looks like it will do the job quite well. Thanks!