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

Hotkey for 'Activate' function in the UI #451

Open GWLlosa opened 1 year ago

GWLlosa commented 1 year ago

An extremely minor issue to be sure. Here's how it comes up for me:

I have a problem in my USB cables someplace, every once in a blue moon, it acts like my USB hub gets unplugged/replugged. This has the effect of "disconnecting" my joystick for a second, which seems to cause Joystick Gremlin to 'deactivate' the profile.

I've rigged up an automation script that I can kick off with a keypress. My intent was to have the script basically automatically alt-tab to Joystick Gremlin, and then hit the 'activate' button, before alt-tabbing back to the application I was running.

The only part that doesn't work is that there's no 'hotkey' for activate, so I'm forced to rely on having the script move the mouse and click it, which is much more error prone, depending on things like resolution and window position.

Having a hot key like "CTRL+A" to have the same effect as pressing the activate button would solve this problem.

WhiteMagic commented 1 year ago

I guess this is more of a solution to a solution to a problem than an actual "feature". The issue you run into is the hard coded behaviour discussed in #276. The real solution is to have this changed/configurable such that activating it is not something one needs to automate.

Technically adding a hotkey isn't super hard with Qt or QML which the next version is built around, so it's not something that takes a lot of time to add.