WhiteMagic / JoystickGremlin

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

Mode Switch Causes Release Action to be Ignored #417

Closed TheGoodIdeaFairy closed 2 years ago

TheGoodIdeaFairy commented 2 years ago

If a Mode Switch is set as the Press action, the Release action of that button is not executed.

WhiteMagic commented 2 years ago

That is how the logic of modes works. If you switch from A to B upon pressing the button the only release action that would be executed is the one in B but not A, as that's no longer the active mode. Certain actions account for this, for example, the remap action which uses trickery to trigger the release action. However, only remap-like actions do have a defined press and release functionality and thus only they have this treatment.

TheGoodIdeaFairy commented 2 years ago

Got it. That's a little unintuitive, but thanks for helping me understand.